Hi everyone!
I’ve released django-admin-collapse-apps, a small open-source package that adds collapsible application sections to the standard Django admin sidebar.
In projects with several installed applications, the admin navigation can become quite long. This package lets each user collapse the sections they do not currently need, while keeping the familiar appearance and behaviour of Django’s built-in admin.
Features
-
Collapsible application sections in the standard Django admin sidebar
-
The collapsed state is remembered separately for each user in the browser
-
No database models or migrations
-
No external JavaScript dependencies
-
Progressive enhancement: the admin remains usable if JavaScript is unavailable
-
Support for Django’s light and dark themes
-
Optional configuration to enable collapsing only for selected applications
-
Customizable collapse and expand icons
-
Designed to preserve the native Django admin appearance
Installation
pip install django-admin-collapse-apps
Add the package before django.contrib.admin:
INSTALLED_APPS = [
"admin_collapse_apps",
"django.contrib.admin",
# ...
]
By default, all application sections can be collapsed. Applications can also be selected explicitly through the package settings.
The package intentionally does one small thing and does not replace or redesign the Django admin.
Feedback is very welcome, especially regarding compatibility with customized admin templates, accessibility, and behaviour in larger Django projects.
