django-admin-env-notice
Visually distinguish environments in Django Admin
Decision gist · record as of 2026-08-14
Yes, if you run Django Admin in multiple environments. It is a low-friction, zero-dependency safety tool that directly addresses a real operational risk—mistaking one environment for another in the admin interface. The aging maintenance status is not a blocker for a stable, focused package with no dependencies, but verify compatibility with your Django version before deploying.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 1.9+ and Python 2.7 or 3.4+; must be added to INSTALLED_APPS before django.contrib.admin and requires a context processor in TEMPLATES configuration.
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance is aging—last commit was 2026-01-22 and the package went 664 days between releases, though the repo remains active and unarchived.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions.
last release 2024-10-19 (664 days) · last repo commit 2026-01-22 · 344 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 124,969 downloads/mo, #11,844 on PyPI
Alternatives
Verify before relying
pip install django-admin-env-notice
# In settings.py INSTALLED_APPS (before django.contrib.admin):
INSTALLED_APPS = [
'django_admin_env_notice',
'django.contrib.admin',
]
# Add context processor and set environment:
ENVIRONMENT_NAME = "Production"
ENVIRONMENT_COLOR = "#FF2222"- Whether the package works with modern Django versions (3.2+, 4.0+) despite the oldest classifier being Django 1.9.
- Current test coverage and whether tox tests still pass on all listed Python versions.
What it is and what it does
django-admin-env-notice is a small Django app that injects a colored banner into the Django Admin interface to label the current environment. It solves a critical safety problem: preventing accidental administrative actions (like deleting data) in production when you meant to act on staging or development. You configure it by adding the app to INSTALLED_APPS, registering its context processor, and setting two Django settings—ENVIRONMENT_NAME and ENVIRONMENT_COLOR—to define what label and color the banner should display.
The banner is fixed to the top of the admin interface by default but can be made to float instead. You can customize the text color, choose which DOM selector the banner attaches to (useful if you use admin themes like Grappelli), and optionally hide it from unauthenticated users. It has no runtime dependencies and installs as a pure Python wheel, making it lightweight to add to any Django project.
Use it for
- Label production admin with a red banner to make it visually distinct from staging or development environments.
- Prevent accidental data deletion or configuration changes by making the environment immediately obvious when logging into admin.
- Customize banner appearance per environment (e.g., green for dev, yellow for staging, red for production) to reinforce environment awareness.
- Hide the banner from unauthenticated users to avoid leaking environment information to unauthorized viewers.
- Integrate with Django admin themes like Grappelli by adjusting the DOM selector the banner attaches to.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you run Django Admin in multiple environments.
It is a low-friction, zero-dependency safety tool that directly addresses a real operational risk—mistaking one environment for another in the admin interface. The aging maintenance status is not a blocker for a stable, focused package with no dependencies, but verify compatibility with your Django version before deploying.
Install
django-admin-env-notice on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance is aging—last commit was 2026-01-22 and the package went 664 days between releases, though the repo remains active and unarchived.
Requires Django 1.9+ and Python 2.7 or 3.4+; must be added to INSTALLED_APPS before django.contrib.admin and requires a context processor in TEMPLATES configuration.
License in practice
MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install django-admin-env-notice
# In settings.py INSTALLED_APPS (before django.contrib.admin):
INSTALLED_APPS = [
'django_admin_env_notice',
'django.contrib.admin',
]
# Add context processor and set environment:
ENVIRONMENT_NAME = "Production"
ENVIRONMENT_COLOR = "#FF2222"
Verify before relying
- Whether the package works with modern Django versions (3.2+, 4.0+) despite the oldest classifier being Django 1.9.
- Current test coverage and whether tox tests still pass on all listed Python versions.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 664 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,969 / month, #11,844 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: django_admin_env_notice-1.0.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django admin environment banner”
- django-admin-env-noticeAdds a colored banner to Django Admin to visually label the current…
- django-cookie-consentA Django application that manages cookie consent workflows, letting…
- django-constanceDjango-constance lets you store and manage application settings…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also djangocms-admin-style · django-better-admin-arrayfield · django-unfold · django-colorfield · django-adminplus · django-grappelli · django-flags · wagtail-modeladmin · django-admin-interface · django-object-actions