{% extends "admin/base_site.html" %} {% load i18n %} {% block styles %} {{ block.super }} {{ form.media.css }} {% endblock %} {% block scripts %} {{ block.super }} {{ form.media.js }} {% endblock %} {% block bodyclass %}{{ block.super }} login{% endblock %} {% block sidebar %}{% endblock %} {% block header %}{% endblock %} {% block breadcrumbs %}{% endblock %} {% block messages %} {{ block.super }} {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %} {% if user.is_authenticated %}
  • {% 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 %} {% block before_content %}{% endblock %} {% block layout %}

    {{ _("Log in") }}

    {% csrf_token %}
      {% spaceless %} {% for error in form.username.errors %}
    • {{ error }}
    • {% endfor %} {% endspaceless %}
      {% spaceless %} {% for error in form.password.errors %}
    • {{ error }}
    • {% endfor %} {% endspaceless %}
    {% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
    {% endblock %}