C
C
Cyber_bober2016-03-09 16:16:59
Django
Cyber_bober, 2016-03-09 16:16:59

How to manually render a django form?

How to manually render form fields in Django? I want to group them in the layout, and connect google maps to enter the address. If I take all form fields generated in html and store their id/name, will the form work?
I am currently displaying with the tag
{{ form|bootstrap}}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-03-09
@Cyber_bober

{% for field in from %}
    {{ field }}
{% endfor %}

You can also write bare html in the template with the names of the inputs of the form id_fieldname.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question