Saravanan666/pypi-org huggingface dataset:
Package: django2-bootstrap3-datetimepicker
This project was originally a fork ofhttps://github.com/tutorcruncher/django-bootstrap3-datetimepicker:
The js/css files are now included again into the projectThis package uses Bootstrap v3 datetimepicker widget version 2 provided by the following project:https://github.com/Eonasdan/bootstrap-datetimepickerThe correct formatting options for dates can be found here:http://momentjs.com/docs/It works only with Bootstrap3.InstallRunpip installdjango2-bootstrap3-datetimepickerAdd'bootstrap3_datetime'to yourINSTALLED_APPSExampleforms.pyfrombootstrap3_datetime.widgetsimportDateTimePickerfromdjangoimportformsclassToDoForm(forms.Form):todo=forms.CharField(widget=forms.TextInput(attrs={"class":"form-control"}))date=forms.DateField(widget=DateTimePicker(options={"format":"YYYY-MM-DD"}))reminder=forms.DateTimeField(required=False,widget=DateTimePicker(options={"format":"YYYY-MM-DD HH:mm"}))Theoptionswill be passed to the JavaScript datetimepicker
instance. Availableoptionsare explained in the following
documents:http://eonasdan.github.io/bootstrap-datetimepicker/You don’t need to set thelanguageoption, because it will be set
the current language of the thread automatically.template.html<!DOCTYPE html><html><head><linkrel="stylesheet"href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.css"><linkrel="stylesheet"href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.css"><scriptsrc="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js"></script><scriptsrc="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.js"></script>{{ form.media }}</head><body><formmethod="post"role="form">{% for field in form.visible_fields %}<divid="div_{{ field.html_name }}"class="form-group{% if field.errors %} has-error{% endif %}">{{ field.label_tag }}
                {{ field }}<divclass="text-muted pull-right"><small>{{ field.help_text }}</small></div><divclass="help-block">{{ field.errors }}</div></div>{% endfor %}
            {% for hidden in form.hidden_fields %}
                {{ hidden }}
            {% endfor %}
            {% csrf_token %}<divclass="form-group"><inputtype="submit"value="Submit"class="btn btn-primary"/></div></form></body></html>Bootstrap3 and jQuery have to be included along with{{ form.media }}RequirementsPython >= 3.4Django >= 2.0Bootstrap == 3.XMoment >= 2.10.6bootstrap-datetimepicker >= 4.15.35
Package: django2-djeddit
Bare bones Django forum application with Reddit like features developed as a Django reusable app.comments are ranked using wilson scoring interval and displayed in a collapsable tree structure (usingdjango-mptt)voting functionality for threads & commentscompatible with mobile screen sizes (usingBootstrap)users management page for adminsadmins can lock/unlock, edit, delete threads and posts, edit & delete topicsdjango-registration-reduxis recommanded to go along with this app if you need out of the box user registration functionality.Working demo:http://eatemall.pythonanywhere.comDocumentation:https://django-djeddit.readthedocs.io.ScreenshotsSupported Dajngo versionsThe app is currently tested with Django 1.8, 1.9, 1.10 and 1.11, 2.0QuickstartInstall django-djeddit:pip install django-djedditAdd it and its dependencies to yourINSTALLED_APPS:INSTALLED_APPS=[...'crispy_forms','mptt','djeddit','meta',...]djeddit_settings to context_processors:'context_processors':[...'djeddit.context_processors.djeddit_settings',...]jango-djeddit’s URL patterns:urlpatterns=[...url(r'^',include('djeddit.urls')),...]Migrate models:pythonmanage.pymigratedjedditCreate a topic:You can use New Topic dialog in topics page if you’re logged in as a superuser or you can create one in a python console:fromdjeddit.modelsimportTopicTopic.objects.create(title='Test Topic')CreditsDependencies:django-mpttcrispy_formsdjango-metadjango-ipwareTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-04-15)First release on PyPI.0.1.5 (2017-05-26)Added tests for models, forms, viewsUrls that include topic titles with spaces in them don’t work // fixedCompetability fixes for Django 1.9 and 1.8 and Python 2.7client side fixes for added compatibility with mobile screen sizesfont-awsome fonts are not loading // fixedAdded description field for Topic modelmoved base.html to root template dir0.2 (2017-07-04)Admins can lock/unlock & delete threads, delete postsAdmins can edit thread title, url, and post contentadded users management page for adminsadmins can edit & delete topicsadded fields upvotes, downvotes, wsi (Wilson score interval) to Post modelremoved score field from Post modelcomments are ranked using wilson scoring intervaladded comments paging functionality (using “Load n more comments” links)0.3 (2018-06-02)added option to define url prefix in settings.TOPICS_URL for topic & thread pagesadded sitemap supportadded url slugs to threadsadded ip & user agent tracking for postsadded compatibility to Django 2.0added thread stickies (can be added or removed by admins)
Package: django-2-docs
django-docsallows to serve Sphinx generated docs directly from Django.DependenciesPython 2.7Django 1.8 or higherCreditsProject on GitHub:littlepea/django-docsDocumentation on Read The DocsMaintained byEvgeny DemchenkoInstallationInstalldjango-docspackage:pip install django-docsAdddocsto INSTALLED_APPS in settings.py:INSTALLED_APPS = (
    ...
    'docs',
    ...
)Adddocs.urlsto urls.py:urlpatterns = [
    ...
    url(r'^docs/', include('docs.urls')),
    ...
]Customize configuration:DOCS_ROOT = os.path.join(PROJECT_PATH, '../docs/_build/html')
DOCS_ACCESS = 'staff'ConfigurationDOCS_ROOT (required)Absolute path to the root directory of html docs generated by Sphinx (just like STATIC_ROOT / MEDIA_ROOT settings).DOCS_ACCESS (optional)Docs access level (public by default). Possible values:public - (default) docs are visible to everyonelogin_required - docs are visible only to authenticated usersstaff - docs are visible only to staff users (user.is_staff == True)superuser - docs are visible only to superusers (user.is_superuser == True)Running the testsMake sure to installtest_requirements.txtfirst:pip install -r test_requirements.txt
pip install -e .You can run the tests with via:python setup.py testor:python docs/tests/runtests.pyTo run all tests against different versions of Django simply run:toxRunning the example projectMake sure to installrequirements.txtfirst:virtualenv env
. env/bin/activate
pip install -r test_requirements.txt
pip install -e .You can run the example project with via:cd example
python manage.py migrate
python manage.py runserverScreenshot
Package: django-2fa
Django 2FAtwo factor authentication support for DjangoMotivationThere are other good Django 2nd factor authentication libraries out there, however, the higher level libraries do not support e-mail and FIDO hardware keys as a second factor by default. Thus, django-2fa supports FIDO and E-Mail by default and additional authentication methods will be added upon request.Supported 2nd FactorsHOTP via e-mailTOTP via authernicator appsFIDO via hardware tokensInstallationpip install django-2faConfigurationYou will need to configure django-2fa to use it in your Django project. Django-2fa works out of the box with minimal configuration, however, you will most likely want to do more configuration such as overriding the HTML templates or using the provided API so that it fits into the style of your project.See ourconfiguration docsfor more detailed information on the process.Additional SubjectsAPI DetailsProtecting Views with a 2nd Factor2 Factor Auth with External AppsShameless PlugsI built this library originally for theNeutronSync Service. So if you would like to support this project please support the service with a subscription to NeutronSync or adonationto the open source libraries. Django 2FA is included by default in the Neutron Sync Server project.
Package: django-2gis-maps
Django 2GIS mapsdjango_2gis_mapsis a simple application that provides the basic
hooks into django_2gis_maps V2 api for use in Django models from Django
version 1.11+.Starting withdjango_2gis_mapsversion (0.7.0), Django 1.11+ is
required because Django changed their widget template rendering system.I'm using this to allow someone from the admin panels to type a
freeform address, have the address geocoded on change and plotted
on the map. If the location is not 100% correct, the user can
drag the marker to the correct spot and the geo coordinates will
update.INSTALLATIONpip install git+https://github.com/NursErgesh/django_2gis_maps.gitpip install django_2gis_mapsUSAGE:include thedjango_2gis_mapsapp in yoursettings.pycreate a model that has both an address field and geolocation fieldfromdjango.dbimportmodelsfromdjango_2gis_mapsimportfieldsasmap_fieldsfromdjango_2gis_maps.mixinsimportDoubleGisMixinclassRental(DoubleGisMixin,models.Model):address=map_fields.AddressField(max_length=200)geolocation=map_fields.GeoLocationField()in theadmin.pyinclude the following as a formfield_overridefromdjango.contribimportadminfromdjango_2gis_maps.adminimportDoubleGisAdminclassRentalAdmin(DoubleGisAdmin):multiple_markers=False# Here is your optionin template include{% load doublegis  %}and use{% render_map instanse %}wherever you needThat should be all you need to get started.I also like to make the geolocation field readonly in the admin so a user
(myself) doesn't accidentally change it to a nonsensical value. There is
validation on the field so you can't enter an incorrect value, but you could
enter something that is not even close to the address you intended.When you're displaying the address back to the user, just request the map
using the geocoordinates that were saved in your model. Maybe sometime when
I get around to it I'll see if I can create a method that will build that
into the model.
Package: django2go
Django Model 2 Go Structfor gorm or other ORM operation.Depends in go code:https://github.com/jinzhu/gormhttps://github.com/guregu/nullInstallgitclone/django2go.gitcddjango2go
pythonsetup.pyinstall.Usage:settings.pyINSTALLED_APPS=[...'django2go',...]run CMD:python manage.py model2go app_nameExample generated go code:testapp.gopython manage.py model2go app_name --use_column_nameTo use database column name.Django model:classModel1(models.Model):field1=models.CharField(max_length=200)field_with_under_score=models.IntegerField()fieldWithUpperCase=models.IntegerField()fieldWith_Case=models.IntegerField()Generated go struct:typeModel2struct{Idint64`json:"id" gorm:"primary_key"`Field1string`json:"field1"`FieldWithUnderScoreint64`json:"field_with_under_score"`Fieldwithuppercaseint64`json:"fieldWithUpperCase"`FieldwithCaseint64`json:"fieldWith_Case"`}// TableName 使用指定的数据库表名func(Model2)TableName()string{returnTABLE_PREFIX+"model2"}
Package: django2-manager-cache
Simple cache manager for Django 2 models that caches querysets for a model.Cache manager will cache any query that has been seen for a model.Model cache is evicted for any updates/deletes to the model.This manager is useful for models that don’t change often.Installationpip install django2-manager-cacheCaching strategyCache results for a model on load.Evict cache for model on update.UsageAdd to installed apps:INSTALLED_APPS = (
    ...
    'django2_manager_cache',
    ...
)Add the manager to a django model:from django2_manager_cache import CacheManager
class MyModel(models.Model):

   # set cache manager as default
   objects = CacheManager()

   # to use this manager with as related manager
   # https://docs.djangoproject.com/en/2.2/topics/db/managers/#base-managers
   # class Meta:
   #    base_manager_name = 'objects'Define cache backend fordjango2_manager_cache.cache_backendinsettings.py. The backend can be any cache backend that implements
django cache API.:CACHES = {
    'django2_manager_cache.cache_backend': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}Django shellTo run django shell with sample models defined in tests.:make shellSample models:from tests.models import Manufacturer
from tests.models import Car
from tests.models import Driver
m = Manufacturer(name='Tesla')
m.save()
c = Car(make=m, model='Model S', year=2015)
c.save()
d = Driver(first_name ='ABC', last_name='XYZ')
d.save()
d.cars.add(c)
drivers = Driver.objects.select_related('car', 'manufacturer').all()TestingTo run tests:make testSupported Django versionsSupported - 1.5, 1.6, 1.7, 1.8, 1.9, 1.11, 2.0, 2.1, 2.2History1.0.1Include docs1.0.0First beta release
Package: django2-propeller
Propeller for Django2====================Write Django as usual, and let ``django2-propeller`` make template output into code based on Google's Material Design Standards & Bootstrap.[![Build Status](https://travis-ci.com/RaddishIoW/django2-propeller.svg?branch=stable)](https://travis-ci.com/RaddishIoW/django2-propeller)[![Documentation Status](https://readthedocs.org/projects/django2-propeller/badge/?version=latest)](https://django2-propeller.readthedocs.io/en/latest/?badge=latest)[![Coverage Status](https://coveralls.io/repos/github/RaddishIoW/django2-propeller/badge.svg?branch=stable)](https://coveralls.io/github/RaddishIoW/django2-propeller?branch=stable)[![Updates](https://pyup.io/repos/github/RaddishIoW/django2-propeller/shield.svg)](https://pyup.io/repos/github/RaddishIoW/django2-propeller/)[![Python 3](https://pyup.io/repos/github/RaddishIoW/django2-propeller/python-3-shield.svg)](https://pyup.io/repos/github/RaddishIoW/django2-propeller/)Requirements------------- Python 3.3, 3.4, 3.5, or 3.6- Django >= 2.0Installation------------1. Install using pip:```pip install django2-propeller```2. Add to INSTALLED_APPS in your ``settings.py``:```'django2_propeller',```3. In your templates, load the ``django2_propeller`` library and use the ``propeller_*`` tags:Example template----------------```{% load propeller %}{# Display a form #}<form action="/url/to/submit/" method="post" class="form">{% csrf_token %}{% propeller_form form %}{% buttons %}<button type="submit" class="btn btn-primary">{% propeller_icon "star" %} Submit</button>{% endbuttons %}</form>```Documentation-------------The full documentation is at https://django2-propeller.readthedocs.io/en/latest/Demo application----------------The demo application provides a number of useful examples.clone the repo:$ git clone https://github.com/RaddishIoW/django2-propeller.gitcd into the cloned directory:$ cd django2-propellerrun the testserver:$ python manage.py runserveropen your browser and browse to:http://127.0.0.1:8000Bugs and suggestions--------------------If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/RaddishIoW/django2-propeller/issuesFurther Information-------------------Propeller: http://propeller.in/Bootstrap: http://getbootstrap.com/Google Material Design: https://material.io/License-------You can use this under MIT License. See [LICENSE](LICENSE) file for details.Author------Originally developed and maintained by [Thorsten FrÃ¶hlich](https://github.com/tfroehlich82),based on the idea of [django-bootstrap3](https://github.com/dyve/django-bootstrap3) from [Dylan Verheul](https://github.com/dyve).This package is updated by [Adam Radestock](https://github.com/RaddishIoW) to work with Django 2
Package: django2-semanticui-form
=======================
Django Semantic UI form.. image::https://badge.fury.io/py/django-semanticui-form.png:alt: PyPI version
:target:https://pypi.python.org/pypi/django-semanticui-form.. image::https://travis-ci.org/gokujo/django-semanticui-form.png?branch=master:target:https://travis-ci.org/gokujo/django-semanticui-form.. image::https://coveralls.io/repos/gokujo/django-semanticui-form/badge.png?branch=master:target:https://coveralls.io/r/gokujo/django-semanticui-form?branch=masterSemantic (Fomantic) UI for Django Form.A simple Django template tag to work withSemantic UI <http://semantic-ui.com/>_This project is a fork fromdjango-bootstrap-form <https://github.com/peterbe/django-semanticui-form>_ bypeterbe <https://github.com/peterbe>_.Some fixes by meUsageAddsemanticuiformto yourINSTALLED_APPS.At the top of your template load in our template tags::{% load semanticui %}Then to render your form::<form class="ui form">
    <legend>Form Title</legend>
    {% csrf_token %}
    {{ form|semanticui }}
    <button class="ui button" type="submit">Submit</button>
</form>To make the form with inline element, change the|semanticuitemplate
tag to|semanticui_inline.::<form class="ui form">
    <legend>Form Title</legend>
    {% csrf_token %}
    {{ form|semanticui_inline }}
    <button class="ui button" type="submit">Submit</button>
    </form>DemoNot yet.
Package: django2-url-robots
Fork of dimka665https://github.com/dimka665/django-url-robotsDjangorobots.txtgenerator. Based on using decorateddjango.conf.urls.url.
It getsurlpatternsand replaces ambiguous parts by*.Installation & UsageThe recommended way to install django2-url-robots is withpipInstall from PyPI witheasy_installorpip:pip install django2-url-robotsAdd'django2_url_robots'to yourINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'django2_url_robots',
    ...
    )Add django2_url_robots view to your root URLconf:urlpatterns += [
    url(r'^robots\.txt$', django2_url_robots.views.robots_txt),
    ]Describe rules by boolean keyword argumentrobots_allowusing for itdjango2_url_robots.utils.urlinsteaddjango.conf.urls.url:from django2_url_robots.utils import url

urlpatterns += [
   url('^profile/private$', views.some_view, robots_allow=False),
   ]django2-url-robotstested withDjango-2.0.5+. Encodes unicode characters by percent-encoding.SettingsIn this moment there are only one option to define template ofrobots.txtfile:urlpatterns += [
    url(r'^robots\.txt$', django2_url_robots.views.robots_txt, {'template': 'my_awesome_robots_template.txt'}),
    ]Examplerobots_template.txt:User-agent: *
Disallow: /*  # disallow all
{{ rules|safe }}urls.py:from django.conf.urls import include

urlpatterns = [
    url(r'^profile', include('django2_url_robots.tests.urls_profile')),
]urls_profile.py:from django2_url_robots.utils import url

urlpatterns = [
    url(r'^s$', views.some_view, name='profiles', robots_allow=True),
    url(r'^/(?P<nick>\w+)$', views.some_view),
    url(r'^/(?P<nick>\w+)/private', views.some_view, name='profile_private', robots_allow=False),
    url(r'^/(?P<nick>\w+)/public', views.some_view, name='profile_public', robots_allow=True),
    ]Resulting robots.txt:User-agent: *
Disallow: /*  # disallow all
Allow: /profiles$
Disallow: /profile/*/private*
Allow: /profile/*/public*
Package: django3-aliyun-oss2-storage
# Django Aliyun OSS2 Storage### Django storage for [阿里云 OSS2](https://www.aliyun.com/product/oss/?spm=5176.383338.201.42.WB7sGd)## Installpip install django-aliyun-oss2-storage## ConfigurationsDjango Aliyun OSS2 Storage 需要以下几个配置才能正常工作。这些配置通过可以环境变量或 settings.py 来设置。环境变量的优先级要高于 settings.py 。BUCKET_NAME`是Bucket的名字，如果该bucket不存在，程序会自动创建。`BUCKET_ACL_TYPE`用于设置Bucket的权限，可以设置为`private,public-read`和 `public-read-write。`python ACCESS_KEY_ID = "40ZhE1HyuWdllpMh" ACCESS_KEY_SECRET = "KbxtlKSvKyuyuymTiQvrxhsYFMguXy" END_POINT ="oss-us-west-1.aliyuncs.com"BUCKET_NAME = "XXXX" ALIYUN_OSS_CNAME = "" # 自定义域名，如果不需要可以不填写 BUCKET_ACL_TYPE = "private" # private,public-read,public-read-write`## Usage在 settings.py 里设置DEFAULT_FILE_STORAGE:`python # mediafile将自动上传 DEFAULT_FILE_STORAGE = 'aliyun_oss2_storage.backends.AliyunMediaStorage' # staticfile将自动上传 STATICFILES_STORAGE = 'aliyun_oss2_storage.backends.AliyunStaticStorage' `## License基于MIT许可证发布
Package: django3-all-access
django-all-access is a reusable application for user registration and authentication
from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.The goal of this project is to make it easy to create your own workflows for
authenticating with these remote APIs. django-all-access will provide the simple
views with sane defaults along with hooks to override the default behavior.You can find a basic demo application running athttp://django-all-access.mlavin.org/FeaturesSane and secure defaults for OAuth authenticationEasy customization through class-based viewsBuilt on the amazingrequestslibraryInstallationIt is easiest to install django-all-access from PyPi using pip:pip install django-all-accessdjango-all-access requires Python 2.7 or 3.3+ along with the following Python
packages:django>=1.8
pycrypto>=2.4
requests>=2.0
requests_oauthlib>=0.4.2
oauthlib>=0.6.2DocumentationAdditional documentation on using django-all-access is available onRead The Docs.Licensedjango-all-access is released under the BSD License. See theLICENSEfile for more details.ContributingIf you have questions about using django-all-access or want to follow updates about
the project you can join themailing listthrough Google Groups.If you think you’ve found a bug or are interested in contributing to this project
check outdjango-all-access on Github.
Package: django3-cache-decorator
Easily add caching to functions within a django project.## Installation from PyPi` pip installdjango3-cache-decorator`## Example usage` from django_cache_decorator import django_cache_decorator @django_cache_decorator(time=0) def geocodeGooglePlaceTextJson(location): `## Running tests` python-munittest tests `## CreditsBuilt off of example code from:http://james.lin.net.nz/2011/09/08/python-decorator-caching-your-functions/Further development and packaging by Richard Caceres (@rchrd2)## Release log0.4 - Update project for PyPi (pip install django-cache-decorator)!0.3 - another bug fix for unicode params0.2 - bug fix for unicode params0.1 - initial release
Package: django3-dashing
Note this fork is to support Django 3, which dropped support for Python2.NOTE: Using Python 3.9 for development as shown in pipfile, but Python 3.6 or greater should work too.django-dashingis a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the exceptionally handsome dashboard frameworkDashingCheck out a demo overhere.PrerequisitesDjango 3+Django Compressor (optional)Key conceptsUse premade widgets, or fully create your own with css, html, and javascript.Use the API to push data to your dashboards.Drag & Drop interface for re-arranging your widgets.InstallationInstall latest stable version from PyPi:$ pip install django-dashingAdddashingtoINSTALLED_APPSof the your projects.INSTALLED_APPS=(...'dashing',)Include the dashboard URLconf in your project urls.py like this:fromdashing.utilsimportrouter...path('dashboard/',include(router.urls)),Start the development server and visithttp://127.0.0.1:8000/dashboard/to view the dummy dashboard.Quick StartTo make your own dashboard and retrieves the data from django you should:Create a django dashboard application with awidgets.pyfileCreate your widget extended fromNumberWidget,ListWidget,GraphWidgetor simplyWidget(from dashing.widgets), for examplesee.Register your widget inurls.pylike:fromdjango.urlsimportinclude,pathfromdashing.utilsimportrouterfromproject.dashboard.widgetsimportCustomWidgetrouter.register(CustomWidget,'custom_widget')urlpatterns=[path('dashboard/',include(router.urls)),]Create a dashing-config.js file with a widget that retrive the data in your static directory like:varmyDashboard=newDashboard();myDashboard.addWidget('customWidget','Number',{getData:function(){varself=this;Dashing.utils.get('custom_widget',function(data){$.extend(self.scope,data);});},interval:3000});Also if you want to locate the config file in a different directory you can create adashing/dashboard.htmlfile in yourTEMPLATE_DIRSand replace theconfig_fileblock to the route of your javascript config file, see thedocs.TestingInstall dependencies.$ npm install
$ pip install -r requirements.txtRun tests.$ npm testLinksDocumentationDemo applicationWidget List