{% extends "admin/base.html" %} {% comment %} Overrides the admin base template (django.contrib.admin and django-unfold). Extending a template with its own name makes Django resolve the *next* "admin/base.html" in the loader chain, so list "django_admin_loading" BEFORE "unfold" and "django.contrib.admin" in INSTALLED_APPS. {% endcomment %} {% block extrahead %} {{ block.super }} {% include "django_admin_loading/assets.html" %} {% endblock %}