Saravanan666/pypi-org huggingface dataset:
Package: django-extended-admin-ru
Важно: добавьте 'admin_extended_ru' перед 'admin_extended' в INSTALLED_APPSПакет предоставляет дополнительные настройки- VERBOSE_APPS_NAMESСловарь, где ключи - названия приложений, а значения - их переводПример: VERBOSE_APPS_NAMES = {'core': u'ядро'}- ADMIN_CAPTIONSСловарь заголовковЗначения по умолчанию:{'branding' u'Администрирование', 'title': u'Панель администрирования сайта', 'home': 'Главная'}Заметьте: лучше использовать в связке с django-admin-tools, так как не все места переведены для обычной админки (планируется в следующей версии)
Package: django-extended-attachments
django-extended-attachments is a file storage application
with following features:Automatic thumbnail generationAntivirus checkSHA1 checksumsMediaWiki file path styleFile descriptionAccess permission check callbacksDeduplicationThis application based ondjango-attachmentsanddjango-filetransfers.Requiresdjango-extensionsdjango >= 1.2python >= 2.60.4.0First standalone version (previous in robobb)Backends base classes moved from*_base.pyinto__init__.py
Package: django-extended-flatpages
Django Extended Flatpages============================Installing:pip install django_extended_flatpagesIn settings:INSTALLED_APPS = (......'ckeditor','extended_flatpages',...)MIDDLEWARE_CLASSES = (...'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',...)Configure CKeditorhttps://github.com/shaunsephton/django-ckeditor#installationsettings.py# ckeditor configCKEDITOR_UPLOAD_PATH = MEDIA_ROOT + '/editor'CKEDITOR_CONFIGS = {'default': {'toolbar': [[ 'Source','-','Save','-', 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo', '-', 'Find','Replace','-','SelectAll'],[ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] ,'/',[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],[ 'Link','Unlink' ],[ 'Image','Table','HorizontalRule','SpecialChar' ],[ 'Format'],[ 'TextColor','BGColor', '-', 'Styles','Format','FontSize' ],[ 'Maximize', 'ShowBlocks','-','About' ],],'format_tags': 'p;h1;h2;h3;h4;h5;h6;pre;address;div',},}urls.py(r'^ckeditor/', include('ckeditor.urls')),And finally create a/templates/flatpages/default.html template to get working this.
Package: django-extended-forms-validation
Important steps:* include 'validation_extended' in yours INSTALLED_APPS* read docstrings from validation_extended.validationPackage features:- Turns form validation represent like so:# forms.pyfrom validation_extended import AutoValidatedclass SomeForm(AutoValidated, django.forms.ModelForm):  # or django.forms.Form as base classclass Meta:model = SomeModelclass Validators:class RequiresAll:foo = [foo_validator]bar = [bar_validator]baz = [baz_validator(5)]- Forms can make rules for jquery.validate if form class was inherited from ClientValidationand all validators were inherited from Validator class and written like so:# validators.pyfrom validation_extended import Validatorclass SimpleValidator(Validator):message = "simple validator error"client_events = "focusout keyup"data = {'values': [1, 2, 3]}def js_rules(self):passdef validated(self, field_name, data):if not data in self.data['values']:self.raise_error()- It also provide remote validation. To use it include next lines in your urls.py:# urls.pyurlpatterns += patterns(url(r'^validation/', include('validation_extended.urls')))
Package: django-extended-history
django-extended-historydjango-extended-historyis (IMHO) the simplest way to record all changes made in admin-screens.RequirementsDjango >=4.1FeaturesDrop-in extension for Django history. No changes in any model, hence no migrations.Records all changes in JSON format, extending what Django stores by default.Adds a view ‘Log entries’ under ‘Administration’, showing all content types for which a user has permissions.Safe to remove. Django will ignore all extra recorded information and revert to it’s default history. So give it a spin!Installationpip install django-extended-historySetupAdddjango_extended_historytoINSTALLED_APPSsetting like this:INSTALLED_APPS=[...,'django_extended_history',]Done!UsageApply theDjangoExtendedHistorymixin to all applicable admin-views:fromdjango.contribimportadminfrom.modelsimportMyModelfromdjango_extended_history.adminimportDjangoExtendedHistory@admin.register(MyModel)classMyModelAdmin(DjangoExtendedHistory,admin.ModelAdmin):...MiscDjango extended history is released under the BSD-3 license, like Django. If you like it, please consider contributing.
Package: django-extended-messages
django-extended-messages======================Installation------------1. Add *'django-extended-messages'* directory to your Python path2. Add *'django.contrib.messages'* to your INSTALLED_APPS3. Add *'django.contrib.messages.middleware.MessageMiddleware'* to your MIDDLEWARE_CLASSES4. Add *'django.contrib.messages.context_processors.messages'* to your TEMPLATE_CONTEXT_PROCESSORS5. Add *MESSAGE_STORAGE = 'extended_messages.storage.session.SessionStorage'* to your settings.py6. Add *extended_messages.urls* in your urls.pyConfiguration-------------*STICKY_FROM_THE_LEVEL*Usage-----import extended_messages as messagesmessages.warning(request, 'Your account expires in three days.', sticky=True)
Package: django-extended-models
django-extended-modelsdjango-extended-modelsis a Django utility package that provides mixins and models with extended functionalities.InstallationInstall the package usingPoetry:poetryadddjango-extended-modelsFeaturesutils.py__set_default_valuesThe function sets default values for fields in a model if they are not provided.fromdjango_extended_models.utilsimport__set_default_values# Example usage:model=...fields=...dictionary,fields=__set_default_values(model,fields)model_to_dictConverts a Django model object into a dictionary, recursively including related model objects up to a specified depth.fromdjango_extended_models.utilsimportmodel_to_dict# Example usage:object=...fields=...dictionary=model_to_dict(object,fields=fields)mixins.pyToDictMixinProvides a methodto_dictthat converts a model instance to a dictionary.fromdjango_extended_models.mixinsimportToDictMixin# Example usage:classMyModel(ToDictMixin):passinstance=MyModel()dictionary=instance.to_dict()models.pyBaseModelA base model that includes theToDictMixin.fromdjango_extended_models.modelsimportBaseModel# Example usage:classMyModel(BaseModel):passLicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: django-extended-settings
django-extended-settingsApps for Django to extend global settings with additional filesInitialize other configuration settings for django project
Other configurations must be set in /path/to/project/djangoproject/settings.d/*_settings.pyProject/
    |_ apps1/
    |_ ...
    |_ project/
       |_ settings.py
       |_ urls.py
       |_ ...
       |_ settings.d/
          |_ one_settings.py
          |_ second_settings.pyThe current version of the Django Extended Settings is 1.2.0. It works on Django ≥ 2.0. (not tested other)InstallationGetting the codeThe recommended way to install the Django Extended Settings is via pip or pipenv:$pipinstalldjango-extended-settingsPrerequisitesMake sure addextended_settingsto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'extended_settings',# ...]Play settings into your projectCreate sub directorysettings.d/into django project directory and put your configuration into independant files with this patterns*_settings.pysample:/path/to/project/djangopython/settings.d/production_settings.pyPlay database settingsYou can add some settings in database$ ./manage.py migrateIn your python files, you can create settings (in command for example) like thisfromextended_settings.modelsimportExtentedSettingso=ExtentedSettings()o.name="My home page location"o.key="hostname"o.value="http://localhost:8000"o.save()To retrieve settings in your views, ...fromextended_settings.modelsimportExtentedSettingsmy_var=ExtentedSettings.get("hostname")my_var=ExtentedSettings.get("hostname",'default value')my_int=ExtentedSettings.get_int("my-int")my_float=ExtentedSettings.get_float("my-float",100.0)my_bool=ExtentedSettings.get_boolean("my-bool")# True = yes, y, true, 1, ...MiscThe Django Extended Settings is released under the BSD license, like Django itself. If you like it, please consider contributing!The Django Extended Settings was originally created by Mickael Badet in September 2018.
Package: django-extended-shell
A tiny application that import models from INSTALLED_APPS whenmanage.py shellcommand called.Getting ItYou can get django-extended-shell by using pip:$ pip install django-extended-shellInstalling ItTo enabledjango-extended-shellin your project you need to add it toINSTALLED_APPSin your projectssettings.pyfile:INSTALLED_APPS = (
    ...
    'extended_shell',
    ...
)SettingsAvailable settings, see extended_shell/settings.py# Enable or disable import colors (Default: True)
EXTENDED_SHELL_COLORED = True

# Import models from INSTALLED_APPS (Default: True)
EXTENDED_SHELL_IMPORT_APPS_MODELS = True

# List of custom user modules
EXTENDED_SHELL_IMPORTS = []

# List of usefull django utils
EXTENDED_SHELL_DEFAULTS = [
    'django.conf.settings',
    'django.core.cache.cache',
    'django.utils.timezone',
    'django.db.models.Avg',
    'django.db.models.Count',
    'django.db.models.F',
    'django.db.models.Q',
    'django.db.models.Max',
    'django.db.models.Min',
    'django.db.models.Sum'
]
Package: django-extensions
Django Extensions is a collection of custom extensions for the Django Framework.Getting StartedThe easiest way to figure out what Django Extensions are all about is to watch theexcellent screencast by Eric Holscher(watch the video on vimeo). In a couple
minutes Eric walks you through a half a dozen command extensions. There is also ashort screencast on GoDjango’s Youtube Channelto help show you even more.RequirementsDjango Extensions requires Django 3.2 or later.Getting ItYou can get Django Extensions by using pip:$ pip install django-extensionsIf you want to install it from source, grab the git repository from GitHub and run setup.py:$ git clone git://github.com/django-extensions/django-extensions.git
$ cd django-extensions
$ python setup.py installInstalling ItTo enabledjango_extensionsin your project you need to add it toINSTALLED_APPSin your projectssettings.pyfile:INSTALLED_APPS=(...'django_extensions',...)Using ItGenerate (and view) a graphviz graph of app models:$ python manage.py graph_models -a -o myapp_models.pngProduce a tab-separated list of(url_pattern, view_function, name)tuples for a project:$ python manage.py show_urlsCheck templates for rendering errors:$ python manage.py validate_templatesRun the enhanced django shell:$ python manage.py shell_plusRun the enhanced django runserver, (requires Werkzeug install):$ python manage.py runserver_plusGetting InvolvedOpen Source projects can always use more help. Fixing a problem, documenting a feature, adding
translation in your language. If you have some time to spare and like to help us, here are the places to do so:GitHub:https://github.com/django-extensions/django-extensionsMailing list:https://groups.google.com/group/django-extensionsTranslations:https://www.transifex.com/projects/p/django-extensions/DocumentationYou can view documentation online at:https://django-extensions.readthedocs.ioOr you can look at the docs/ directory in the repository.SupportDjango Extensions is free and always will be. It is developed and maintained by developers in an Open Source manner.
Any support is welcome. You could help by writing documentation, pull-requests, report issues and/or translations.Please remember that nobody is paid directly to develop or maintain Django Extensions so we do have to divide our time
between putting food on the table, family, this project and the rest of life :-)
Package: django-extensions-models
Django Model ExtensionsA Django library for model extensionsRequirementsPython (3.5, 3.6, 3.7, 3.8)Django (2.0, 3.0)We highly recommend and only officially support the latest patch release of each Python and Django series.InstallationInstall usingpip...pip install django-extensions-modelssettingsINSTALLED_APPS = (
    # ...
    'models_extensions',
)ExampleLet's take a look at a quick example of using model extensionsfrom models_extensions.models import UUIDModel, TimeStampedModel, ActivatorModel

class YourModel(UUIDModel, TimeStampedModel, ActivatorModel):
    # ...Don't forgetmakemigrations&migrateto apply models to your database.
Package: django-extensions-shell
Django Extensions Shell is theshell_pluscommand extracted from the excellent Django Extensions project into its
own project. In most projects I’ve been only using theshell_pluscommand and to me it feels much better to
introduce a dependency on this specific code in projects then to depend on the whole Django Extensions project.Django Extensions Shell will loosely follow releases done by the Django Extensions Project itself. The version
number of Django Extensions Shell will always match the release of Django Extensions.RequirementsDjango Extensions Shell requires Django 1.8 or later.Getting ItYou can get Django Extensions by using pip or easy_install:$ pip install django-extensions-shell
or
$ easy_install django-extensions-shellIf you want to install it from source, grab the git repository from GitHub and run setup.py:$ git clone git://github.com/shanx/django-extensions-shell.git
$ cd django-extensions-shell
$ python setup.py installInstalling ItTo enabledjango_extensionsin your project you need to add it toINSTALLED_APPSin your projectssettings.pyfile:INSTALLED_APPS = (
    ...
    'django_extensions_shell',
    ...
)Using ItRun the enhanced django shell:$ python manage.py shell_plusDocumentationYou can view documentation online at:https://django-extensions-shell.readthedocs.ioOr you can look at the docs/ directory in the repository.Changelog1.7.5 (unreleased)1.7.4.1 (2016-09-16)This version is still based on 1.7.4, unfortunately a minor bug was found that had to be fixed.1.7.4 (2016-09-13)Initial release based on Django Extensions 1.7.4
Package: django-extensions-too
Django Extensions TooAuthor:Tim Santortsantor@xstudios.comOverviewDjango Extensions Too is a collection of custom extensions for the Django Framework. It is recommended as a supplement to the excellenthttps://github.com/django-extensions/django-extensionsGetting ItTo install Django Extensions Too, just use pip:$pipinstalldjango-extensions-tooInstalling ItTo enabledjango_extensions_tooin your project you need to add it toINSTALLED_APPSin your projectssettings.pyfile:INSTALLED_APPS=('django_extensions_too',)Using ItRunpython manage.pyand view the available[django_extensions_too]management_commands.IssuesIf you experience any issues, please create anissueon Bitbucket.HistoryAll notable changes to this project will be documented in this file. This project adheres toSemantic Versioning.0.1.6 (2023-06-21)Change to new Python packaging style withpyproject.toml.0.1.5 (2022-08-29)Ignoresorl-thumbnailcache/files.0.1.4 (2021-09-03)Addedmanifest_storage_checkto test manifest storage methods locally.0.1.3 (2021-08-24)Fixeddelete_unreferenced_filesandmissing_filesto not assume local file storage backend.0.1.2 (2017-04-03)Added adelete_unreferenced_filescommand which deletes all files in MEDIA_ROOT that are not referenced in the database.0.1.1 (2017-04-03)Fixed a bug with an outdated permissions method call infix_proxy_permissionscommand.0.1.0 (2017-03-30)First release on PyPI.
Package: django-extension-tools
django-extensionsInstallationpipinstallgit+https://github.com/yutayamazaki/django-extensionsIf you userequirements.txt.-e git://github.com/yutayamazaki/django-extensions.gitWhen you need to use specific version, follow this page.https://stackoverflow.com/questions/16584552/how-to-state-in-requirements-txt-a-direct-github-sourceUsageMiddllewaresAdminIPRestrictionMiddlewareIt is possible to restrict the IP address on the admin screen,http://domain.name/admin/, of the production environment. You can set the IP address to be accessible by entering it into the ALLOWED_ADMIN_IP_LIST in settings.py.# settings.pyALLOWED_ADMIN_IP_LIST=['xxx.xxx.xxx.xxx','xxx.xx.xx.xx']MIDDLEWARE=[...'django_extensions.middlewares.AdminIPRestrictionMiddleware'...]
Package: django-external-jwttoken-shared-security
External JWT Token Shared SecurityThis django app is used to manage django auth using a token from a external source.
Like a auth microserviceQuick startAdd "shared_security" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'shared_security',
]Add on your django projects settings a var named JWT_SECRET_KEY with the secret key of your external jwt generator source. We recommend using
a environment variable instead of writing to code directly on settings.py for security reasonsInclude the shared_security URLconf in your project urls.py like this:path('token/', include('shared_security.api.urls')),Start the django development server.To use the authentication on your APIAdd the authentication class on REST_FRAMEWORK variable on django rest framework settings as:REST_FRAMEWORK = {
    ...

    'DEFAULT_AUTHENTICATION_CLASSES': [
        "shared_security.authentication.ExternalTokenAuthentication",
    ],
    ...
}Add to specific django rest view as:from shared_security.authentication import ExternalTokenAuthentication

class YourView(viewsets.ViewSet):
"""
A awesome view
"""

authentication_classes = [ExternalTokenAuthentication,]

...Visithttp://127.0.0.1:8000/security/userpassing on header Authentication Bearer <external_jwt_token> to get user
info using decode data from token.Configuration VarsSECURITY_USE_PERSISTENT_USERS:Boolean var to specify if you want to use your auth with the creation and update of users
on the database. Important to use the django admin application the vars need to be set to true.
Package: django-external-urls
Captures clicks on external links, and invokes a callback (signal).Useful for tracking outbound links.pip install django-external-urlsSettings:Add tosettings.py:INSTALLED_APPS = (
    'external_urls',
)Add tourl.py:urlpatterns = patterns('',
    url(r'', include('external_urls.urls')),
)Usage:The templates can be used as follows:{% load external_urls %}
{% external_url object.website %}
{% external_url "http://example.com/" %}Sends a Signal,external_link:from external_links.signals import external_click
from django.dispatch import receiver

@receiver(external_click)
def my_callback(sender, url, ip):
    print("tracked click to {} from {}".format(url, ip))
Package: django-extlog
Extended log for Django, tracks changes in values of fields.InstallationInstalling from pypi (using pip):pip install django-extlogInstalling from github:pip install -e git://github.com/AxiaCore/django-extlog.git#egg=django-extlogQuick SetupAdddjango_extlogto yourINSTALLED_APPSsetting like this:INSTALLED_APPS = (
    ...
    'django_extlog',
)AddAuditLoggingMiddlewareto yourMIDDLEWARE_CLASSESsetting:MIDDLEWARE_CLASSES = (
    ...
    'django_extlog.middleware.AuditLoggingMiddleware',
)
Package: django-extra-cbv
# django-extra-cbvReleated apps:views for inline forms:http://django-extra-views.readthedocs.org/en/latest/https://github.com/AndrewIngram/django-extra-viewsmixins for check permissions:https://github.com/dstegelman/django-infusehttps://github.com/tswicegood/cbv_utilshttps://pypi.org/project/django_extra/#historyhttps://github.com/AndrewIngram/django-extra-viewsRTFMhttp://effectivedjango.com/http://www.robgolding.com/blog/2012/11/17/django-class-based-view-mixins-part-2/## OverviewExtra class based views for Django Framework## InstallationInstall work version using PIP:pip install django-extra-cbv## SettingsNo any settings required## UsageSee code, please. There are not any docs or examples provided yet.
The code is very simple.
You can subclass base views to set up work with your models## Provided template tags and librariesNo any templeate tags provided## Provided management commandsNo any management commands provided## TestingYou can run tests inside this package:python run_tests.pyor with tox:tox
Package: django-extraconfig
django-extraconfigWithdjango-extraconfigit’s easy to extend a Django projectsettings.pyfile. The only function provided by this module isload_extraconfig(entry_point_name, module_name).extraconfig.load(entry_point_name, module_name)Loads all uppercase values from the entry point modules
into the module with the namemodule_nameoverriding
any existing values.UsageAt the bottom of yoursettings.pyfile add:try:
    import extraconfig
except ImportError:
    pass
else:
    extraconfig.load(<entry_point_name>, __name__)entry_point_namecan be any string value but it’s a good practice to
include the projectname in order to avoid name collisions. For example to
load the extra configuration showed below,entry_point_nameshould be
set to“my_project.extraconfig”.Creating an extra configurationIt’s easy to create an extra configuration module. The minimal project
layout is composed of two files:setup.pyand the module file. The module
will be installed using thesetup.pyfile just like any other regular
Python module. In order fordjango-extraconfigto know that this module
should be used to override your Django configuration insetup.pyyou must
add it in the entry point config.A minimalsetup.pyfile can look like this:from setuptools import setup

setup(
    name='my_extra_config',
    version='0.1',
    py_modules=['my_extra_config'],
    entry_points = {
        'my_project.extraconfig': 'main = my_extra_config'
    }
)Now you can add amy_extra_config.pyfile with the settings you want to
override:DEBUG = TrueInstalling the extra configurationOnce the extra configuration project is ready you can run:python setup.py developThis will install the extra configuration module in development mode, meaning
you can edit the extra settings and all the changes will be visible without
reinstalling it.
Package: django-extracontent
Dowloads:http://pypi.python.org/pypi/django-extracontent/Source:http://github.com/lsbardel/django-extracontentKeywords:django, database–A django abstract model and form for handling extra content in a model.Let’s say we have a modelMyDatawhich can point to different underlying data types:from django.db import models
from extracontent.models import ExtraContent
from extracontent.forms import ExtraContentForm

class DataModel1(models.Model):
    value = models.TextField()

class DataModel2(models.Model):
    dt = models.DateField()

class MyData(ExtraContent):
    name = models.CharField(max_length = 20)

class MyDataForm(ExtraContentForm):
    class Meta:
        model = MyDataThen we can do this:>>> from extracontent import content
>>> elem = MyDataForm({'content_type':content('datamodel1'),
... 'value':'this is a test', name:'a data object'}).save()
>>> elem.extra_content()
<DataModel1: DataModel1 object>
>>> elem.extra_content().value
'this is a test'Running TestsOnce installed:>>>from extracontent.tests import run
>>>run()or from within thetestsdirectory:python runtests.py
Package: django-extra-exceptions
Http403 response fromhttp://devwithpassion.com/felipe/manipulando-erros-http-403-permissao-negada-no-django/This will be integrated with django-response-helpershttps://github.com/chronossc/django-response-helpers/https://github.com/imtapps/django-response-helpershttp://pypi.python.org/pypi/django-response-helpers