{% comment %} Django's form error handling. Include in templates before the form. For example: {% include 'django_addons/clips/form_error_handling' %}
Extracted as a snippet from django template. Copyright 2012-2023 TopDevPros Last modified: 2023-10-01 {% endcomment %} {% load i18n %} {% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}

{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{% endif %} {% if form.non_field_errors or form.this_is_the_login_form.errors %} {% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}

{{ error }}

{% endfor %} {% endif %}