Answer the question
In order to leave comments, you need to log in
Block content django?
Help me to understand!
There is a user profile page.
in it
{% block content %}
<div> Шапка </div>
{% block one %}
<div> Контент </div>
{% endblock %}
{% endblock %}
{% block content %}
<div> Шапка </div>
{% block one %}
<div> Контент </div>
{% endblock %}
{% block setting %}
<div> Контент </div>
{% endblock %}
{% endblock %}
Answer the question
In order to leave comments, you need to log in
For starters, you can
{% if request.path == 'settings' %}
ваш блок
{% endif %}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question