{% extends 'adminlte2/layouts/login.html' %} {% load i18n %} {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock title %} {% block body_class %}{{ block.super }} login{% endblock body_class %} {% block login_logo_href %} {% url 'admin:index' %} {% endblock login_logo_href %} {% block login_logo_text %}{{ site_header|default:_('Django administration') }}{% endblock login_logo_text %} {% block login_custom_messages %} {% if form.errors and not form.non_field_errors %}

Alert!

{% if form.errors.items|length == 1 %} {% trans "Please correct the error below." %} {% else %} {% trans "Please correct the errors below." %} {% endif %}

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

Alert!

{% blocktrans trimmed %} You are authenticated as {{ username }}, but are not authorized to access this page. Would you like to login to a different account? {% endblocktrans %}

{% endif %} {% endblock login_custom_messages %} {% block login_form_action %}{{ app_path }}{% endblock login_form_action %} {% block login_links %} {% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %} {% endblock login_links %}