Answer the question
In order to leave comments, you need to log in
How to insert html blocks from other files in django?
Let's say there are 2 html files, in one there is arbitrary code, in the other there are several different blocks.
The task is to insert a specific block from the second file to a specific location in the first.
Let me explain with an example:
file1.html:
<div>
<!-- Здесь должен появится блок с id=2 из
второго файла -->
</div>
<div id="1"></div>
<div id="2"></div>
<div id="3"></div>
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