{% extends 'base' %} {% block content %} {% if form.errors %}

Invalid login attempt.

{% endif %} {% if next %} {% if user.is_authenticated %}

Your account doesn't have access to this page. To proceed, please log in with an account that has access.

{% else %}

Please log in to see this page.

{% endif %} {% endif %}
{% csrf_token %}
{{ form.username.label_tag }} {{ form.username }}
{{ form.password.label_tag }} {{ form.password }}
{% endblock %}