I have this code in my login form.
{% for field in login_form %}
<p>{{ field }}</p>
{% if field.errors %}
<p class="text-danger">{{ field.errors.as_text|cut:"* "|escape }}</p>
{% endif %}
{% endfor %}
The user must enter a valid email address in the "username" field. If the user enters a string not formatted like an email, I'll see this error in the `p` tag: "Enter a valid email address."
But if the user enters a bad email/password combo, nothing shows up. In my `views.py`, I have a section that looks something like
if login_form.is_valid:
...
else:
print login_form.errors
Here's what Django prints to console. "<ul class="errorlist"><li>__all__<ul class="errorlist nonfield"><li>Please enter a correct username and password. Note that both fields may be case-sensitive.</li></ul></li></ul>"
Why does the error print to console but not into my `p` tag?