class PersonForm(Form): name = forms.CharField() email = forms.EmailField() age = forms.IntegerField() # And here's how you would output its fields using a custom template: {% for field in form %}
Oh no! {{ error }}
{% endfor %} {% endif %} {{ field.label_tag }}: {{ field.as_html }}