{% comment %} django-admin-react login page. Served by ``DarLoginView`` (django.contrib.auth LoginView + a staff-only form). Self-contained inline styles — no dependency on the SPA bundle — so the login page renders even when the legacy Django admin is off and the React assets haven't loaded yet. CSRF is enforced by Django's middleware on the POST (no ``@csrf_exempt``). {% endcomment %} Sign in · {{ brand_title|default:"django-admin-react" }}
{% if brand_logo_url %}{% endif %} {{ brand_title|default:"django-admin-react" }}
{% if form.non_field_errors %} {% endif %}
{% csrf_token %} {% for error in form.username.errors %}

{{ error }}

{% endfor %} {% for error in form.password.errors %}

{{ error }}

{% endfor %} {% if next %}{% endif %}