H
H
huko2016-06-18 17:10:01
Django
huko, 2016-06-18 17:10:01

How to display a variable in a template using the O_o template?

The output view generates forms Form_1, Form_2, etc., the form can be one, or maybe 100. The template has a cycle for the required number of forms, I don’t understand how I can display the form according to the principle{{ Form_{{ forloop.counter }} }}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2016-06-18
@deliro

Push the forms into a list, pass the list into a context, and iterate over it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question