Saravanan666/pypi-org huggingface dataset:
Package: django-admintheme
Django Admin Theme is a CSS-only skin for the Django’s Admin app. This allows
projects that make customizations to the standard admin templates to work
without modification.Screen shotsUseHow to ContributeScreen shotsUseInstall the app withpip installdjango-admintheme.Addadminthemeto the top ofINSTALLED_APPS:INSTALLED_APPS = (
    'admintheme',
    'django.contrib.admin',
    # ...
)How to ContributeSubmit bugs.Enter them athttps://github.com/callowayproject/django-admintheme/issues.Include a screen shot if possibleInclude HTML if it isn’t common or if it is necessaryGive Feedback.Enter feedback as a bug (see above).We’ll keep it open for some discussion, if necessary, depending on other feedback.Submit Patches.Types of patches:Updates to thetest_pagesfiles for missed cases.Documentation updatesSCSS updatesSubmit a pull request!Include a screen shot if it is a different look so others can give feedback without having to download and install the fork.
Package: django_admin_thumbnail
django_admin_thumbnail======================[![PyPi version](https://pypip.in/v/django_admin_thumbnail/badge.png)](https://crate.io/packages/django_admin_thumbnail/)[![PyPi downloads](https://pypip.in/d/django_admin_thumbnail/badge.png)](https://crate.io/packages/django_admin_thumbnail/)This is a package developed to help you with `ImageField` visualization in your `ModelAdmin`. It automatically creates user friendly thumbnail for any `ImageField` you choose to put in your `list_display`.All you have to do is to switch from *ModelAdmin* to *ThumbAdmin* subclass. It's super easy to use:The Looks---------This is how it looks when you hover your cursor over an `ImageField` column:![The Looks](https://raw.github.com/fjcaetano/django-admin-thumbnail/master/thumb_image.png)Usage-----Insert **admin_thumbnail** to the end of your `INSTALLED_APPS` in `settings.py`:``` pythonINSTALLED_APPS = (...'admin_thumbnail',...)```Now, your `ModelAdmin` must look like this::``` pythonfrom models import ModelExamplefrom admin_thumbnail import thumb_adminfrom django.contrib import adminclass ModelExampleAdmin(thumb_admin.ThumbAdmin):list_display = ('an_image_field',)admin.register(ModelExample, ModelExampleAdmin)```After that you must create your DB table that manages the cached thumbnails:python manage.py syncdbIf you're using `south` you'll need to initialise **sorl.thumbnail's** migrations:```python manage.py schemamigration sorl.thumbnail --initialpython manage.py migrate sorl.thumbnail --database=$DATABASE_NAME```If your `$DATABASE_NAME` is not _default_, and you're using a (DB router)[https://docs.djangoproject.com/en/dev/topics/db/multi-db/#using-routers], you should add a key named `thumbnail` to your database mapping dictionary!Yes! It's THAT simple!# InstallationPlease, first read the [sorl.thumbnail installation](http://sorl-thumbnail.readthedocs.org/en/latest/) to install it's requirements.Install using pip:pip install django-admin-thumbnailOr you can clone the project and install it via:python setup.py install## Requirements* [Django 1.4+](http://pypi.python.org/pypi/Django/1.4)* [sorl.thumbnail 11.12+](http://pypi.python.org/pypi/sorl-thumbnail/11.12)* [PIL 1.1.6+](http://pypi.python.org/pypi/PIL/1.1.6)# Localizationdjango-admin-thumbnail is localizable, but currently, the only officially supported languages are pt_BR, en_US and es. But feel free to localize it the way you want and then, send me the .po file for it to be official.# ContactIf you have any comments, ideas questions, feedback, etcetera, email me and we'll be in touch. I'm <flavio@vieiracaetano.com>
Package: django-admin-timestamps
Show human readable created/modified dates and/or times in thedjango.contrib.adminchangelist for models that track the
moment of creation and updates.UsageFirst you will need to have a model that tracks the moment of creation and
modification. The barebones example for that is:from django.db import models

class TimestampedItem(models.Model):
    created = models.DateTimeField('created', auto_now_add=True)
    modified = models.DateTimeField('modified', auto_now=True)Or, if you are usingdjango-extensions:from django_extensions.db.models import TimeStampedModel

class TimestampedItem(TimeStampedModel):
    passNow it’s time to register this model with Django’s admin site.Create a admin class, just like you’d usually do, but make it extendTimestampedAdminMixinas well as any other base admin class you use:from django.contrib import admin
from models import TimestampedItem
from admintimestamps import TimestampedAdminMixin

class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
    pass

admin.site.register(TimestampedItem, TimestampedAdmin)That’s it!ConfigurationIf the names of you timestamp fields aren’tcreatedandmodifiedbut for examplecreated_atandmodified_atyou’ll need to do a tiny
bit of configuration in the model admin class:class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
    timestamp_fields = ('created_at', 'modified_at')You can also use the timestamp_fields tuple to only show one field by
only specifying the field you want to show:class TimestampedAdmin(TimestampedAdminMixin, admin.ModelAdmin):
    timestamp_fields = ('modified',)Changelog for django-admin-timestamps1.2 (2014-09-29)Dropped support for Python < 2.6Dropped support for Django < 1.4Verified support for up to Django 1.7Added support for Python 31.1.1 (2013-07-01)Handle None values properly1.1 (2012-02-21)Just displaying one timestamp field is now possible.Proper handling of date fields.1.0.1 (2011-10-11)Fixed setup.py to include the compat subpackage1.0.0 (2011-10-07)Initial release
Package: django-admintool-command
Django Admin Tool CommandA reusable Django app that allows to run mangement commands from admin
siteInstallationTo get the latest stable release from PyPipip install django-admintool-commandTo get the latest commit from GitHubpip install -e git+git://github.com/daadu/django-admintool-command.git#egg=admintool_commandTODO: Describe further installation steps (edit / remove the examples
below):Follow installation instructions forhttps://github.com/django-admin-tools/django-admin-toolsAddadmintool_commandto yourINSTALLED_APPSINSTALLED_APPS = (
    ...,
    'admin_tools',
    'admin_tools.menu',
    'admin_tools.dashboard',
    'admintool_command',
)Add theadmintool_commandURLs to yoururls.pyurlpatterns = [
    url(r'^admin/commands/', include('admintool_command.urls')),
]UsageCommands need to inherit from admintool_command.AdminCommand and
implement at least a Form which is used to present the command
arguments.Then these are added to settings like:ADMIN_TOOLS_COMMANDS = {
    'app_name': ['command_name'],
}Optionally, add admintool_command.dashboards.AdminCommandMenu to your
django-admin-tools menu.TODO: Describe about django-admin-toolsTODO: Describe usage or point to docs. Also describe available settings
and templatetags.ContributeIf you want to contribute to this project, please perform the following
steps# Fork this repository
# Clone your fork
virtualenv -p python3.6 venv
source venv/bin/activate
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branchIn order to run the tests, simply executetox. This will install four
new environments (for Django 1.11, 2.0, 2.1 and 2.2) and run the tests
against all environments.
Package: django-admin-top-models
django-admin-top-modelsPut most used and important models to the top of your Django admin index.INSTALLpip install django-admin-top-modelsConfigurationAddadmin_top_modelstoINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'admin_top_models',
    ...
)Addadmin_top_models.middleware.AdminTopModelsMiddlewaretoMIDDLEWARE_CLASSES:MIDDLEWARE_CLASSES = (
    ...
    'admin_top_models.middleware.AdminTopModelsMiddleware',
    ...
)AddADMIN_TOP_MODELS_CONFIGsetting to your settings.py:ADMIN_TOP_MODELS_CONFIG = (
    ('firstapp', ('First', 'Third')),
    ('secondapp', ('DModel', 'CModel', 'AModel')),
    ('auth',),
)Adjust other options (if you need to. These are defaults):# should the '--------------------' spacer be added between your top and the rest models?
ADMIN_TOP_MODELS_INSERT_SPACER = True

ADMIN_TOP_MODELS_SPACER_NAME = '-' * 20

# if this is set to True, order of apps and models will be the same across different languages,
# otherwise django's order by translated names will be used.
ADMIN_TOP_MODELS_ALWAYS_SORT_BY_OBJECT_NAME = FalseCHANGELOG1.1.0 (2016-08-04)Fixed setuptools complaining about missing django1.0.0 (2016-07-19)Fixed settings being deadly cachedAdded more tests to reach 100% coverage0.0.3 (2016-07-09)Fixed RST inconsistent title levels in the README0.0.2 (2016-07-09)Added READMEFixed IndexError when a second item of the config tuple is absent, like in('thirdapp',)Fixed spacer position shift when the config includes models which are not actually present0.0.1 (2016-07-08)Initial working version
Package: django-admin-twitter
# django-admin-twitterManage twitter from Django admin interface##DisclaimerI hold no liability for what you do with this administration interface or what happens to you by using it. Abusing the Twitter API *can* get you banned from Twitter, so make sure to read up on [proper usage](https://support.twitter.com/articles/76915-automation-rules-and-best-practices) of the Twitter API.**Do not mass reply, favorite or follow using this interface to avoid being banned from Twitter!**##DependenciesYou will need to install Python's [python-twitter](https://github.com/sixohsix/twitter/) library:pip install twitterAlthough this library should be installed along with the Twitter Follow Bot if you used `pip`.You will also need to create an app account on https://dev.twitter.com/apps1. Sign in with your Twitter account2. Create a new app account3. Modify the settings for that app account to allow read & write4. Generate a new OAuth token with those permissionsFollowing these steps will create 4 tokens that you will need to place in _settings.py_ as discussed bellow.##Installation- Copy the admin_twitter to your project's directory- Add _admin___twitter to INSTALLED_APPS on your _settings.py_- Add OAUTH_TOKEN , OAUTH_SECRET , CONSUMER_KEY and CONSUMER_SECRET to your _settings.py_ (follow the instructions on the Dependencies section)- Copy _updatebutton.js_ to your static directory- Update your db (manage.py makemigrations;manage.py migrate)##Usage- On your admin interface under the Admin_Twitter section you will find the 3 components of admin_twitter:- **Authors** - Users from who you have fetched tweets- **Messages** - Messages that can be sent to users- **Tweets** - List of fetched tweets- To start using Admin_Twitter go to **Tweets** and press **Update Tweets** (If you can't see the button on the top right corner, check that _updatebutton.js_ is being correctly loaded). You'll be asked for the search pattern for the tweets and the corresponding tweets will be added to Tweet list and the corresponding users will be added to the Author list.- From the Tweet list you can favourite tweets or reply to tweets - a random Message will be used for each reply (make sure to have at least one active message on the Message list) by selecting the Tweets and using the dropdown menu.- From the Author list you can follow users by selecting them and using the dropdown menu.
Package: django-admin-two-factor
Django Admin Two-Factor AuthenticationDjango Admin Two-Factor Authentication, allows you to login django admin with google authenticator.Why Django Admin Two-Factor Authentication?Using google authenticator to login your Django admin.Used jquery confirm dialog to get code.Simple interfaceEasy integrationHow to use itDownload and install last version ofDjango Admin Two-Factor Authentication:$pipinstalldjango-admin-two-factor# or$easy_installdjango-admin-two-factorAdd 'admin_two_factor' application to the INSTALLED_APPS setting of your Django projectsettings.pyfile (note it should be before 'django.contrib.admin'):INSTALLED_APPS=('admin_two_factor.apps.TwoStepVerificationConfig','django.contrib.admin',# ...)Migrateadmin_two_factor:$pythonmanage.pymigrateadmin_two_factor
$# or$pythonmanage.pysyncdbAdd‍‍‍‍ADMIN_TWO_FACTOR_NAMEin yoursettings.py. This value will be displayed inGoogle Authenticator.ADMIN_TWO_FACTOR_NAME='PROJECT_NAME'Include theAdmin Two FactorURL config inPROJECT_CORE/urls.py:urlpatterns=[path('admin/',admin.site.urls),path('two_factor/',include(('admin_two_factor.urls','admin_two_factor'),namespace='two_factor')),# ...]Collect static if you are in production environment:$pythonmanage.pycollectstaticClear your browser cacheStart the app$# Set up the database$pythonmanage.pymakemigrations
$pythonmanage.pymigrate
$
$# Create the superuser$pythonmanage.pycreatesuperuser
$
$# Start the application (development mode)$pythonmanage.pyrunserver# default port 8000Access theadminsection in the browser:http://127.0.0.1:8000/ScreenShootsUser List:the users who have enabled two-factor authAdd New User:Scan QRCode and enter the valid code:Logout and login again withGoogle Authenticator:
Package: django-admin-ui
Django jazzmin (Jazzy Admin)Drop-in theme for django admin, that utilises AdminLTE 3 & Bootstrap 4 to make yo' admin look jazzyInstallationpip install django-jazzminDocumentationSeeDocumentationorTest AppDemoLive demohttps://django-jazzmin.herokuapp.com/adminUsername:test@test.comPassword: testNote: Data resets nightlyFeaturesDrop-in admin skin, all configuration optionalCustomisable side menuCustomisable top menuCustomisable user menu4 different Change form templates (horizontal tabs, vertical tabs, carousel, collapsible)Bootstrap 4 modal (instead of the old popup window, optional)Search bar for any given model adminCustomisable UI (via Live UI changes, or custom CSS/JS)ResponsiveSelect2 drop-downsBootstrap 4 & AdminLTE UI componentsUsing the latestadminlte+bootstrapScreenshotsDashboardList viewChange form templatesCollapsed side menuExpanded side menuHorizontal tabsVertical tabsCollapsibleCarouselRelated modalHistory pageLogin viewUI CustomiserMobile layoutTablet layoutAdmin Docs (if installed)ThanksThis was initially a Fork ofhttps://github.com/wuyue92tree/django-adminlte-uithat we refactored so much we thought it
deserved its own package, big thanks to @wuyue92tree for all of his initial hard work, we are still patching into that
project were possible, but this project has taken a different direction.The javascript modal implementation uses some code fromdjango-admin-interface, so thanks to @fabiocaccamo for original workBased on AdminLTE 3:https://adminlte.io/Using Bootstrap 4:https://getbootstrap.com/Using Font Awesome 5:https://fontawesome.com/
Package: django-admin-user-stats
=============================django-admin-tools-user-stats=============================This app provides django-admin-tools dashboard modules with userregistration stats/charts.The license is MIT.Installation============Make sure django-admin-tools >= 0.4.0 is installed and then::pip install "django-qsstats-magic >= 0.6.1"pip install "python-dateutil==1.5"pip install "django-chart-tools >= 0.2.1"pip install django-admin-user-statsThen add 'admin_user_stats' and 'chart_tools' to INSTALLED_APPS.Quickstart==========Import ``RegistrationCharts`` dashboard module::from admin_user_stats.modules import RegistrationChartsthen and add it to dashboard's children::self.children += [RegistrationCharts()]go to admin and enjoy the result_... _result: https://bitbucket.org/kmike/django-admin-user-stats/downloads/RegistrationCharts.pngUsage=====RegistrationChart-----------------Dashboard module with user registration charts (new users per day,week or month).To enable, import it::from admin_user_stats.modules import RegistrationChartand add to dashboard's children (or to modules.Group)::self.children += [RegistrationChart('New Users', interval='days', days=30)]RegistrationCharts------------------Group subclass with 3 default children modules (new users per day,per week and per month).Advanced Usage=============New BaseChart(s) abstract modules are there for you to play with.  Want to track kitten activity?BaseChart---------To build charts for other time-series data, inherit from BaseChart and set a few attributes::from admin_user_stats.base_modules import BaseChartfrom kitten.models import Activityclass ActivityChart(BaseChart):"""Dashboard module with Activity charts."""title = _('How Active were the kittens')template = 'admin_user_stats/modules/chart.html'chart_size = "580x100"days = Noneinterval = 'days'queryset = Activity.objects.filter(kitten=True).exclude(active=None)date_field = 'activity_date'BaseCharts---------To collect those charts in to the normal Day,Week,Month tabs::from admin_user_stats.base_modules import BaseChartclass ApplicationCharts(BaseCharts):""" Group module with 3 default registration charts """title = _('Kitten Activity')chart_model = ActivityChartContributing============Development of django-admin-user-stats happens at Bitbucket and Github:* https://bitbucket.org/kmike/django-admin-user-stats* https://github.com/kmike/django-admin-user-statsIf you don’t like Bitbucket, Github, Mercurial and Git you’re welcometo send regular patches.Bug tracker: https://github.com/kmike/django-admin-user-stats/issues
Package: django-admin-user-summary
Pluggable Django admin app shows user registration summary.DocumentationThe full documentation is athttps://django-admin-user-summary.readthedocs.io.QuickstartInstall Django Admin User Summary:pip install django-admin-user-summaryAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_admin_user_summary',...)FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2019-10-28)First release on PyPI.
Package: django-adminutils
django-adminutilsUtilities to make developing with the Django admin a better experience.DevelopmentTo release:Ensure everything is committed.Ensure the HISTORY.rst and the __init__.py files are up to date with
information about the release.Runpython setup.py publishTag the release in git and push the tag:git tag X.Y.Z && git push –tags.History0.0.18 - 2024-02-17Add support forcurrent_appwhen reversing admin URLs.0.0.17 - 2023-09-06Allow nullables inlinked_relationchains.0.0.16 - 2023-01-31Improve validation of actions.0.0.15 - 2022-12-23Improved form actions.0.0.14 - 2022-11-27Release again as wheel is not built correctly.0.0.13 - 2022-11-24Do not make log_* functions available from the module namespace.0.0.12 - 2022-11-24Support custom action inadmin_detail_link.Use date widget also in DateRange fields.Do not raise an error ifeasy_thumbnailsis not installed and it is not
used.Nicer lists styling.Add support for admin log entries.0.0.11 - 2022-01-30Drop support for Python 2.7.Support Django 4.Dropped six dependency.Addedpop_fields,EditOnlyInlineMixin,image_preview, andformatted_jsonutilities.Code linting with black and isort.0.0.10 - 2020-09-09Remove AdminURLFieldWidget which has meanwhile been released upstream.0.0.9 - 2020-09-09Replaceload staticfileswithload static.0.0.8 - 2020-03-25Make easy_thumbnails an optional dependency, again.0.0.7 - 2020-03-16Added a generic form processing action.Add an option to not use forms to submit actions.Compatibility with Django 2.0.0.6 - 2017-12-02Initial python 2 backport.0.0.5 - 2017-12-02Make easy_thumbnails an optional dependency.0.0.4 - 2017-11-23Fix manifest0.0.3 - 2017-11-23Initial release
Package: django-admin-utils
Utility code and patterns.Free software: BSD 2-Clause LicenseInstallationpip install django-admin-utilsYou can also install the in-development version with:pip install https://github.com/ionelmc/django-admin-utils/archive/master.zipDocumentationTerse admin.pyfrom django.contrib import admin
from admin_utils import register, inline

from .models import MyModel, OtherModel

@register(MyModel)
class MyModelAdmin(admin.ModelAdmin):
    inlines = inline(OtherModel),If you want custom admin sites:customsite = admin.AdminSite()

@register(MyModel, site=customsite)
class MyModelAdmin(admin.ModelAdmin):
    inlines = inline(OherModel),Mock admin (mount your views in admin using model wrappers)Have you ever wanted a page in the admin that appears in the app list but you don’t have any
models ? Now you can have that without patching up the admin Site or the templates. Just put this
in your admin.py:from django.urls import path
from admin_utils import make_admin_class

make_admin_class(
    app_label="test_app",
    model_name="Test1",
    urls=[
        path('', views.root, name='test_app_test1_changelist'),
        path('level1/', views.level1, name='level-1'),
        path('level1/level2/', views.level2, name='level-2'),
    ],
)To use different admin site:make_admin_class(
    site=customsite,
    app_label="test_app",
    model_name="Test1",
    urls=[
        path('', views.root, name='test_app_test1_changelist'),
        path('level1/', views.level1, name='level-1'),
        path('level1/level2/', views.level2, name='level-2'),
    ],
)Alternatively you can mount a single view with a decorator:from admin_utils import register_view

@register_view(
    site=customsite,
    app_label="test_app",
    model_name="Test1",
)
def root(request):
    ...Admin mixinsadmin_utils.mixins.FoldableListFilterAdminMixinAdds nice filter toggling with cookie support. Largely based ondjango-foldable-list-filterbut without the transition effect and no pictures.Example:from admin_utils.mixins import FoldableListFilterAdminMixin

class MyModelAdmin(FoldableListFilterAdminMixin, admin.ModelAdmin):
    passLooks like this:admin_utils.mixins.FullWidthAdminMixinMake the changelist expand instead of having the width of the windows and having that nasty inner scrollbar. You never gonna notice that if
your table is long !Example:from admin_utils.mixins import FoldableListFilterAdminMixin

class MyModelAdmin(FoldableListFilterAdminMixin, admin.ModelAdmin):
    passYou probably didn’t even notice you had this problem:Changelog2.0.4 (2021-07-19)Fix mock admin regression and add test.2.0.3 (2021-07-19)Make the mock admin behave as without editable permissions (implemented the missinghas_view_permissionmethod).2.0.2 (2021-07-18)Expose the fake hidden model as afake_modelattribute.2.0.1 (2021-07-18)Add missing import foradmin_utils.register_view.2.0.0 (2021-07-18)Drop support for Python 2.7 and Django 1.11.Added theregister_viewdecorator.Update examples/readme.Various bugfixes.1.0.0 (2021-07-14)Fixed a bunch of regressions with Django 3.2.0.3.0 (2014-02-02)Forgot to add any details.