Предположим, у меня есть 2 файла base.html
и home.html
.
home.html
:
{% block block1 %} b1 {% endblock %}
{% block block2 %} b2 {% endblock %}
{% block block3 %} b3 {% endblock %}
... and many more
base.html
:
<!-- need extending other files so it is not an option. -->
{% extends 'othertemplate.html' %}
{% include 'home.html' %} <-- I only want block2 from this file here.
Как сделать Я делаю это при отображении 'base. html'?