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 %}
{{ field.errors }} {{ field.label_tag }}: {{ field }}
{% endfor %} # By default, {{ field.errors }} outputs a