I\'m trying to create a form in Django. That works and all, but I want all the errors to be at the top of the form, not next to each field that has the error. I tried loopin
Dannys's answer is not a good idea. You could get a ValueError.
{% if form.errors %} {% for field in form %} {% for error in field.errors %} {{field.label}}: {{ error|escape }} {% endfor %} {% endfor %} {% endif %}