{"id":21136,"library":"django-admin-env-notice","title":"Django Admin Environment Notice","description":"Visually distinguish environments (e.g., development, staging, production) in Django Admin with a customizable banner. Current version 1.0.1. Low release cadence.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/dizballanze/django-admin-env-notice","tags":["django","admin","environment","notice","banner"],"install":[{"cmd":"pip install django-admin-env-notice","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Requires Django's admin contrib app","package":"django","optional":false}],"imports":[{"wrong":"from django.conf import settings","symbol":"get_version","correct":"from django_admin_env_notice import get_version"}],"quickstart":{"code":"# Install: pip install django-admin-env-notice\n# settings.py\nINSTALLED_APPS = [\n    ...\n    'admin_env_notice',\n]\n\nENV_NOTICE_SETTINGS = {\n    'ENVIRONMENT_NAME': os.environ.get('ENVIRONMENT_NAME', 'Development'),\n    'ENVIRONMENT_COLOR': os.environ.get('ENVIRONMENT_COLOR', '#808080'),\n}\n","lang":"python","description":"Add 'admin_env_notice' to INSTALLED_APPS and set ENV_NOTICE_SETTINGS in settings.py."},"warnings":[{"fix":"If you need frontend notices, consider using a different approach or custom middleware.","message":"The environment notice only appears in Django Admin, not on the frontend.","severity":"gotcha","affected_versions":"all"},{"fix":"Set these settings in your environment or in settings.py to avoid using defaults.","message":"The 'ENVIRONMENT_NAME' and 'ENVIRONMENT_COLOR' are not set by default; you must configure them or the notice will use default values (likely gray 'Development').","severity":"gotcha","affected_versions":"all"},{"fix":"Use uppercase keys as shown in the quickstart.","message":"The setting name 'ENVIRONMENT_NAME' and 'ENVIRONMENT_COLOR' are case-sensitive. Older documentation may use 'environment_name'.","severity":"deprecated","affected_versions":"<=1.0.0?"}],"env_vars":null,"search_vec":"'1.0.1':21 'admin':2,14,26 'banner':18,29 'cadenc':24 'current':19 'customiz':17 'develop':9 'distinguish':6 'django':1,13,25 'e.g':8 'environ':3,7,27 'low':22 'notic':4,28 'product':11 'releas':23 'stage':10 'version':20 'visual':5","created_at":"2026-04-27T16:58:16.303009+00:00","updated_at":"2026-04-27T16:58:16.303009+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/dizballanze/django-admin-env-notice","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-admin-env-notice/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}