Skip to main content

django-admin-appmenu provides a templatetag that renders an application menu in the Django admin.

https://img.shields.io/pypi/v/django-admin-appmenu.svg https://img.shields.io/pypi/pyversions/django-admin-appmenu.svg https://travis-ci.org/collab-project/django-admin-appmenu.svg?branch=master https://coveralls.io/repos/collab-project/django-admin-appmenu/badge.svg https://img.shields.io/badge/license-MIT-blue.svg

Installation

Use pip to install the download and install the package from PyPi:

pip install django-admin-appmenu

Or checkout the source code from Github:

git clone https://github.com/collab-project/django-admin-appmenu.git
cd django-admin-appmenu
pip install -e .

Add admin_appmenu to INSTALLED_APPS in your Django project settings:

INSTALLED_APPS = (
    ...

    'admin_appmenu',
)

Usage

Override the admin/base.html template and make the tag available in the template:

{% load navigation %}

Now add the admin_navigation tag to the template:

{% admin_navigation %}

After reloading the admin you will see the new menu.

To customize the output of the tag create and customize a copy of the admin_appmenu/navigation.html template.

Custom admin site

By default the standard Django admin site (django.contrib.admin.site) is used to build the menu tree. If your project uses a customized admin site set the ADMIN_APPMENU_CLASS setting to the path of the custom admin site instance.

For example in settings.py:

ADMIN_APPMENU_CLASS = 'myapp.admin.admin_site'

This also allows you to sort and format the applications list used to render the menu.

Metadata

Release files for django-admin-appmenu 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-admin-appmenu 1.0.0
File Size Uploaded
django-admin-appmenu-1.0.0.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-admin-appmenu 1.0.0
File Interpreter ABI Platform
django_admin_appmenu-1.0.0-py2-none-any.whl Python 2 none any Details

Total release size: 21.4 kB

Release files / django-admin-appmenu-1.0.0.tar.gz

Download URL django-admin-appmenu-1.0.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
206a27872837fed69cc4b086f7bc2546b0999a3822bbc6498b89c79af19a1592
BLAKE2b-256 checksum
How to use checksums
95d4f6954fd543491955ae9892cd5b8519f97112c997afa22492a17af91eab56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_admin_appmenu-1.0.0-py2-none-any.whl

Download URL django_admin_appmenu-1.0.0-py2-none-any.whl
Size 12.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6927c79b565cbf44152c99baf3279b926826bac2a80a462428a53596a889aa6d
BLAKE2b-256 checksum
How to use checksums
df3dfd1a81fd67644da22e9afc2fdca380bbe74c852232c51adad33fbf806768
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page