Login

{% if form.non_field_errors %}

Please enter a correct email address and password. Note that both fields are case-sensitive.

{% endif %} {% with form.username as field %}
{% csrf_token %} {{field}}
{% endwith %} {% with form.password as field %}
{{field}}
{% endwith %}