Answer the question
In order to leave comments, you need to log in
How to "block" a block in a template?
Hello everyone, I don’t even know if this can be called a problem, but I don’t quite understand how to solve it correctly. The template has a predescription block.
base.html
{% block predescription %}
<div class="predescription">
</div>
{% endblock %}
{% extends '.../base.html' %}
{% block predescription %}
{% endblock %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question