Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frnhr/django-light
Disable dark mode in Django admin UI.
https://github.com/frnhr/django-light
Last synced: about 2 months ago
JSON representation
Disable dark mode in Django admin UI.
- Host: GitHub
- URL: https://github.com/frnhr/django-light
- Owner: frnhr
- License: mit
- Created: 2021-09-08T12:55:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T07:38:39.000Z (over 2 years ago)
- Last Synced: 2024-07-11T16:38:50.817Z (2 months ago)
- Language: CSS
- Size: 3.91 KB
- Stars: 34
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-light
Disable dark mode in Django admin UI.
## Installation
1. `pip install django-light`
2. Add `'django_light',` to `INSTALLED_APPS` **before** `django.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 `/django_light/django_light.css` stylesheet.Please report any problems via GitHub issues. PRs welcome.