{% extends "registration/registration_base.html" %} {% load trans blocktrans from i18n %} {% load crispy from crispy_forms_tags %} {% block title %} {% trans "Log in" %} {% endblock title %} {% block heading %}
{% trans "Your username or password is incorrect. Try again?" %}
{% endif %} {% if next %} {% if user.is_authenticated %}{% blocktrans %} Your account doesn't have access to this page. To proceed, please login with an account that has access. {% endblocktrans %}
{% else %}{% trans "You must login to access this page." %}
{% endif %} {% endif %}
{% trans "Forgot your password?" %} {% trans "Reset it" %}
{% trans "No account yet?" %} {% trans "Register" %}
{% endblock content %} {% comment %} **registration/login.html** It's your responsibility to provide the login form in a template called registration/login.html by default. This template gets passed four template context variables: ``form`` A Form object representing the login form. See the forms documentation for more on Form objects. ``next`` The URL to redirect to after successful login. This may contain a query string, too. ``site`` The current Site, according to the SITE_ID setting. If you don't have the site framework installed, this will be set to an instance of RequestSite, which derives the site name and domain from the current HttpRequest. ``site_name`` An alias for site.name. If you don't have the site framework installed, this will be set to the value of request.META['SERVER_NAME']. For more on sites, see The "sites" framework. {% endcomment %}