Hi Michael.

The easiest thing to do here is override the CSS file at:
django/contrib/admin/static/admin/css/dark_mode.css

So, most often, put a `admin/css/dark_mode.css` in a project level folder
defined by `STATICFILES_DIRS`.
https://docs.djangoproject.com/en/4.0/howto/static-files/#configuring-static-files

Kind Regards,

Carlton

On Fri, 18 Feb 2022 at 20:33, Michael Fischer <michael.fisc...@marinelabs.io>
wrote:

> Hi! We recently updated to Django==3.2.12 and were very please to find
> that dark theme is now supported in the admin.  But, it seems this is only
> if the user's desktop settings are set to dark theme.  It would be really
> great if this could be application-specific, so that the admin page always
> displays in the given theme regardless of local settings.  Is it possible
> to have this added as an option in settings.py?
>
> Thanks for the great work you all do!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/84a8212a-680b-4843-b0d4-e369cc04a3a6n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/84a8212a-680b-4843-b0d4-e369cc04a3a6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJwKpyTFwJ-n_sPQcVoo7_xrNyNzRygR-Jp5t%2Behk43xwGQPgQ%40mail.gmail.com.

Reply via email to