Skip to main content

Disable dark mode in Django admin UI.

Project description

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 <STATIC_URL>/django_light/django_light.css stylesheet.

Please report any problems via GitHub issues. PRs welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-light-0.1.0.post3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

django_light-0.1.0.post3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file django-light-0.1.0.post3.tar.gz.

File metadata

  • Download URL: django-light-0.1.0.post3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for django-light-0.1.0.post3.tar.gz
Algorithm Hash digest
SHA256 74e7fc67c4aaaae304cb34529b5bb9e46b78ce6c87381c5edc00b7f4f84a422e
MD5 a483684f5c9368df5423b622d896ad5e
BLAKE2b-256 b20c187b964baa8499605b2f4a45243c4bb315f93fa10a7b03cce4b6f98af90f

See more details on using hashes here.

Provenance

File details

Details for the file django_light-0.1.0.post3-py3-none-any.whl.

File metadata

  • Download URL: django_light-0.1.0.post3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for django_light-0.1.0.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 921a09124f2a8db0c0ea3a8f06dede5782180b0398f901bc595305db7b622a90
MD5 2f681b3a59a3156cac537ed25dc2bbed
BLAKE2b-256 ee10c7f5f75ec4471eb7daf409e8150828cabf85c22f281f187ad1173a75e8af

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page