From 2e8239d2edbc9fabe2b6dc9d2e2270358fc944a1 Mon Sep 17 00:00:00 2001 From: mbcodes Date: Tue, 12 Nov 2024 20:17:15 -0800 Subject: [PATCH] Fixed #35875 -- dark mode support for views/templates and admin --- .../contrib/admin/templates/admin/base.html | 1 + django/views/templates/csrf_403.html | 1 + django/views/templates/default_urlconf.html | 25 ++++++++++--------- django/views/templates/directory_index.html | 1 + django/views/templates/technical_404.html | 1 + django/views/templates/technical_500.html | 1 + 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index f4df6b30af..3df606ff4a 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -3,6 +3,7 @@ {% block title %}{% endblock %} + {% block dark-mode-vars %} diff --git a/django/views/templates/csrf_403.html b/django/views/templates/csrf_403.html index ee81b04bcc..6a0daad5ee 100644 --- a/django/views/templates/csrf_403.html +++ b/django/views/templates/csrf_403.html @@ -2,6 +2,7 @@ + 403 Forbidden