K
K
Konstantin Malyarov2018-02-09 00:22:02
Django
Konstantin Malyarov, 2018-02-09 00:22:02

How to insert code from another html file in django?

index.html

<body>

     </body>

form.html
<form>

     </form>

How to insert one into the other?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2018-02-09
@Konstantin18ko

<body>
{% include "form.html" %}
</body>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question