1👍
✅
What you’re currently seeing is the output of form.as_table, which gives you the form rendered as tr elements that you insert into a set of tags. You’ll want to check out Customizing the form template in the django docs to make them do exactly what you want them to do. That link walk you through it with examples.
To just get the input widgets, iterate through the form and only insert the field itself:
<form action="" method="get">
{% for field in form %}
{{ field }}
{% endfor %}
</form>
Source:stackexchange.com