Skip to main content

Django admin toolbox - bunch of improvements for default django admin

Project description

This package provides bunch of useful tools for default django admin site, such as:

All configuration is held in ADMIN_TOOLBOX dict that should be placed in your settings.py file.

Installation

  1. Install admin toolbox (if not installed already)

  2. add admin_toolbox at the top of your INSTALLED_APPS (at least above django.contrib.admin)

Configuration

All configuration of this application is held in one dictionary in django settings, named ADMIN_TOOLBOX. Below you can see default configuration:

ADMIN_TOOLBOX = {
    'sidebar': {
        'default': ('admin_toolbox.builders.AppsListBuilder', {}),
    },
    'breadcrumbs': 'auto',
}

If you want to customize any setting, you don’t have to copy whole defaults. Anything that is not set, will be filled in with default values.

Below you can find description of how to configure each module.

Smart Breadcrumbs

This module gives you ability to rewrite default admin breadcrumbs to match structure defined with admin menu. Generation of smart breadcrumbs requires beautifulsoup4 library, which you can install by installing django-admin-toolbox[smart-breadcrumbs].

You can enable or disable this feature, by using 'breadcrumbs' in settings dict. Allowed values are:

  • None - Disables breadcrumbs alltogether. This option will hide default breadcrumbs generated by Django.

  • 'auto' - Breadcrumbs will be automatically enabled if beautifulsoup4 is available. Otherwise, default django admin breadcrumbs will be used.

  • 'auto-smart' - Breadcrumbs will be automatically enabled if beautifulsoup4 is available. Otherwise, no breadcrumbs will be used.

  • 'smart' - Breadcrumbs will be explicitly enabled. This option will trigger exception if beautifulsoup4 is not installed

  • 'force-smart' - Similar to 'smart', but breadcrumbs will be also visible on pages, where they don’t exist in default django admin.

Project details


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-toolbox-1.0.0.dev29.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

django_admin_toolbox-1.0.0.dev29-py2.py3-none-any.whl (1.8 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-admin-toolbox-1.0.0.dev29.tar.gz.

File metadata

File hashes

Hashes for django-admin-toolbox-1.0.0.dev29.tar.gz
Algorithm Hash digest
SHA256 82092fe6b5e80e273e1abbfc6618c9c13c2fd471487fc24c976cf8781d4f0992
MD5 b61f987d5d59f3fb8aa2e85dd00ee4bb
BLAKE2b-256 f9b6cdec52ab131d1f06f748ad1c84b58d77fde73e8b074ed193237c8c2395d0

See more details on using hashes here.

File details

Details for the file django_admin_toolbox-1.0.0.dev29-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_admin_toolbox-1.0.0.dev29-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3943fefff3ac29f74227245dbade51b941c0995c7c2ef37a7834faaffa672b31
MD5 80875f19e9192f3b7bde96ad6cbd7ed1
BLAKE2b-256 cf755c13f175f36af6781c4a7894f846a8ef84767970fd75f182bebd78308628

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