{% extends "admin/base.html" %} {% comment %} Override of Django admin's `admin/base_site.html` (#584). The package's template loader picks this up automatically when `django_admin_react` appears **before** `django.contrib.admin` in `INSTALLED_APPS` (Django's app-directory template loader resolves left-to-right and the first match wins). Documented in the README's "Legacy-admin escape hatch" section. Strip placement (#595): `{% block content %}` is overridden WITHOUT `{{ block.super }}` by Django's `change_list.html`, `change_form.html`, `index.html`, and `login.html` — which silently discards anything we put in that block on most pages a user actually visits. `{% block header %}` (defined once in `admin/base.html`) is NOT overridden by those templates, so the strip renders consistently across the whole admin surface AND lands visually above the admin header — exactly where a migration-direction banner should be. When the prefixes aren't both set the template tag renders nothing, so this override is **a pure no-op for consumers who haven't opted into the escape hatch**. {% endcomment %} {% load i18n experience_toggle %} {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {% block branding %}
{% if user.is_anonymous %} {% include "admin/color_theme_toggle.html" %} {% endif %} {% endblock %} {% block header %} {% experience_toggle_strip %} {{ block.super }} {% endblock %} {% block nav-global %}{% endblock %}