Django templates: overriding blocks of included children templates through an extended template
It seems to be little known that you can use the with keyword with the include to pass variables into the context of an included template – you can use it to specify includes in the included template: # base.html <html> <body> {% block header %}{% include “header.html” %}{% endblock %} </body> </html> # header.html … Read more