Skip to main content

Admin index for Django.

Project description

Version:
1.5.0
Download:

https://pypi-hypernode.com/pypi/django_admin_index

Source:

https://github.com/maykinmedia/django-admin-index

Keywords:

django, admin, dashboard

Build status coverage BSD License Supported Python versions Supported Django versions

About

This extension enables you to group, order and customize the Django admin index page without too much hassle or visual changes.

There are 2 concepts: Application groups and Application links. You can create an application group and add any model to it in the Django admin, under Admin index. Whether the models are shown to the user, depends on the regular Django permissions and whether it’s registered in the admin.

An application link is simply a URL with a name that you can add to an application group. It shows as a regular Django model.

One final change in the Django admin is the removal of the App lists, that link to a list of models within an App. This concept became obsolete.

Ordered dashboard with dropdown menu. Manage Application groups. Configure application groups and add Application links.

Installation

You can install django_admin_index either via the Python Package Index (PyPI) or from source.

To install using pip:

$ pip install -U django_admin_index

Usage

To use this with your project you need to follow these steps:

  1. Add django_admin_index and ordered_model to INSTALLED_APPS in your Django project’s settings.py. Make sure that django_admin_index comes before django.contrib.admin:

    INSTALLED_APPS = (
        'django_admin_index',
        'ordered_model',
        ...,
        'django.contrib.admin',
    )

    Note that there is no dash in the module name, only underscores.

  2. Create the database tables by performing a database migration:

    $ python manage.py migrate admin_index
  3. Go to the Django admin of your site and look for the “Application groups” section.

Configuration

There are 3 settings you can add to your settings.py:

  • ADMIN_INDEX_SHOW_REMAINING_APPS (defaults to False)

    Show all models that are not added a to an Application group in a group called “Miscellaneous” for staff users.

    NOTE: If no Application groups are defined, it will show all models regardless of this setting.

  • ADMIN_INDEX_SHOW_REMAINING_APPS_TO_SUPERUSERS (defaults to True)

    Show all models that are not added a to an Application group in a group called “Miscellaneous” for super users users.

    NOTE: If no Application groups are defined, it will show all models regardless of this setting.

  • ADMIN_INDEX_AUTO_CREATE_APP_GROUP (defaults to False)

    Automaticly creates an Application group, based on the app_label, for all the models that would be in the “Miscellaneous” group. If True, your Django admin will initially look as it normally would. It will not update existing Application groups.

  • ADMIN_INDEX_SHOW_MENU (defaults to: True)

    Show the admin index as a menu above the breadcrumbs. Submenu’s are filled with the registered models.

  • ADMIN_INDEX_HIDE_APP_INDEX_PAGES (defaults to: True)

    Removes the links to the app index pages from the main index and the breadcrumbs.

  • ADMIN_INDEX_DISPLAY_DROP_DOWN_MENU_CONDITION_FUNCTION (defaults to django_admin_index.utils.should_display_dropdown_menu)

    A python dotted path that can be imported to check when the dropdown menu should be displayed in the admin. The default implementation displays this menu if the user is a staff user and ADMIN_INDEX_SHOW_MENU is enabled.

Extra

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_admin_index-1.5.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

django_admin_index-1.5.0-py2.py3-none-any.whl (23.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_admin_index-1.5.0.tar.gz.

File metadata

  • Download URL: django_admin_index-1.5.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for django_admin_index-1.5.0.tar.gz
Algorithm Hash digest
SHA256 5c99d18e04dbc38291ca81fd7eb70e29b7e6964bca051eec801490b572aa7ea9
MD5 4553dbf5810ce71a0608a4e740e29df0
BLAKE2b-256 cbca9d92093b9658478fe80e3847da8f56b55be571d7371db120168e3e4775f2

See more details on using hashes here.

File details

Details for the file django_admin_index-1.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_admin_index-1.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for django_admin_index-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c75c63c8358c614b1035591046adfb66428c0d7e9c28280773853d13823019d
MD5 c1c92484dd876003d4201eff7708557e
BLAKE2b-256 9ebcd90d476b2f9710dc4bb7a7547ea69cbfb85835c5bcd353772f1a3546b16e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page