{% extends "otree/BaseAdmin.html" %} {% load i18n otree otree_internal %} {% block title %}Admin Login{% endblock %} {% block content %} {% if form.errors and not form.non_field_errors %}

Please correct the error(s).

{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.errors %}

If you already set a password but want to change it, first you may need to reset the database.

{% endif %}

{% ensure_superuser_exists %}

{% csrf_token %}
{% formfield form.username %}
{% formfield form.password %}

The password is defined in your settings.py file.

{% url 'admin_password_reset' as password_reset_url %} {% if password_reset_url %} {% endif %}
{% endblock %}