{% extends "admin/base.html" %} {% load static %} {# The stock base_site.html plus our stylesheet and branding. Extending admin/base.html #} {# keeps the stock `messages` block, so flash messages show (test_admin_flash_messages). #} {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {# Theme: cfg-theme.js stores "dark" before Django's theme.js reads the choice (dark by #} {# default, the stock toggle still works). The two stylesheets go at the end of
, #} {# after the page stylesheets (forms.css, changelists.css, login.css, widget media) and #} {# responsive.css, so they win at equal specificity without !important. #} {% block dark-mode-vars %} {{ block.super }}{% endblock %} {% block responsive %}{{ block.super }} {% endblock %} {% block branding %}