django-light
django-light copied to clipboard
Disable dark mode in Django admin UI.
django-light
Disable dark mode in Django admin UI.
Installation
pip install django-light- Add
'django_light',toINSTALLED_APPSbeforedjango.contrib.admin
Implementation
This is a pure CSS tweak. The CSS file is injected via base.html in the extrastyle block. If you are using Jinja2
or override base.html in a way that doesn't call {{ block.super }} on that block, YMMV. But in the end all that is
needed is for the browser to load <STATIC_URL>/django_light/django_light.css stylesheet.
Please report any problems via GitHub issues. PRs welcome.