Admin index for Django.
Project description
- Version:
- 0.9.1
- Download:
- Source:
- Keywords:
django, admin, dashboard
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.
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:
Install the django_admin_index library:
$ pip install django_admin_index
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.
Add django_admin_index.context_processors.dashboard to the context processors in your Django project’s settings.py:
TEMPLATES = [ { ... 'OPTIONS': { 'context_processors': [ ... 'django_admin_index.context_processors.dashboard' ], }, }, ]
Create the database tables by performing a database migration:
$ python manage.py migrate admin_index
Go to the Django admin of your site and look for the “Application groups” section.
Configuration
There are 2 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.
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.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_admin_index-0.9.1.tar.gz
.
File metadata
- Download URL: django_admin_index-0.9.1.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca30fca0ccbfc56d829636db07c874172dd7ae77980834f58d2026a4b3be3b6 |
|
MD5 | 57b0bbba28c19735ba51a9292e1fa9a4 |
|
BLAKE2b-256 | f8658748fecad100744b0eb8419302461161d4685d959a8f4097d17e67637240 |
File details
Details for the file django_admin_index-0.9.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_admin_index-0.9.1-py2.py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 971cf1d1ab99565c4b1d11701df0c0272ddcd2cfa1ec3463ca775e13ed24ba89 |
|
MD5 | 7f33f9fcd69d8587789f11a77019b68f |
|
BLAKE2b-256 | 82a916386cf2c37392c059caef5b3f10abea579a6b185c80ea63773a256307fd |