{% comment %}
BLOCK: head_title
Page text. Override in any page template.
Default: "My App"
{% endcomment %}
{% block head_title %}My App{% endblock %}
{% comment %}
BLOCK: stylesheet
dj_auth's own compiled stylesheet: every utility its templates use, and
nothing else. Recolour it with plain CSS by setting --color-primary-50
through -950 anywhere on the page (see the README's "Styling" section).
A project with its own Tailwind build overrides this block to link that
build instead, which must scan dj_auth's templates and define `primary`.
{% endcomment %}
{% block stylesheet %}{% endblock %}
{% comment %}
BLOCK: extra_head [OPTIONAL]
Additional content: extra CSS links, meta tags, etc.
It is added alongside dj_auth's stylesheet; to replace that
stylesheet with your own build, override `stylesheet` instead.
{% endcomment %}
{% block extra_head %}{% endblock %}
{% comment %}
BLOCK: nav [OPTIONAL]
The top navigation bar. Override to customise branding.
Sub-blocks allow targeted overrides without replacing the entire nav:
- nav_logo_href : href for the logo link (default: "/")
- nav_logo_content : logo HTML (icon + site name)
- nav_links : right-side nav items (already has auth links)
{% endcomment %}
{% block nav %}
{% endblock nav %}
{# Flash messages — not a customisation point; override the nav block if you need to reposition these #}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}
{% comment %}
BLOCK: account_nav [OPTIONAL — filled by allauth/layouts/manage.html]
The links between the account-settings pages, on allauth's own pages
(change password, TOTP setup, connections) when they are routed through
this layout. dj_auth's own pages include the links in their content
instead, so they do not depend on this block. Keep it, above the
content, in a base.html that replaces this one.
{% endcomment %}
{% comment %}
BLOCK: content [REQUIRED — this is where allauth renders auth pages]
Main page content. All dj_auth templates (login, signup, MFA settings, etc.)
render their output here. Your own page templates must also use this block.
{% endcomment %}
{% block account_nav %}{% endblock %}
{% block content %}{% endblock %}
{% comment %}
BLOCK: footer [OPTIONAL]
Page footer. Override to customise or remove.
{% endcomment %}
{% block footer %}
{% endblock footer %}
{% comment %}
BLOCK: extra_body [OPTIONAL]
Scripts/content just before . Used internally for the passkey JS snippet.
{% endcomment %}
{% block extra_body %}{% endblock %}