Similar to this question which didn’t have an answer that works for me. I’m trying to customise allauth templates:
- email.html extends base_manage_email.html
- base_manage_email.html extends base_manage.html
- base_manage.html extends manage.html which I’ve overidden to extend my base layout.
I want to wrap content as follows in base_manage.html
:
{% extends "allauth/layouts/manage.html" %}
{% block content %}
<div class="format">
{{ block.super }}
</div>
{% endblock %}
This doesn’t work though because I actually need something like {{ block.child }}
to wrap where the child content (email.html
) will be included. What actually happens is the contents of email.html
is directly rendered as in my base.html
.
How can I simply add default formatting to all the allauth templates that extend base_manage.html
?