{% extends "admin/base_site.html" %} {% load i18n static core_tags %} {% block extrastyle %}{{ block.super }} {{ form.media }} {% endblock %} {% block bodyclass %}{{ block.super }} login{% endblock %} {% block branding %}

ArchiveBox Admin

{% endblock %}

{% block usertools %} {% endblock %} {% block nav-global %}{% endblock %} {% block content_title %}
Log in to add, edit, and remove links from your archive.



{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} {% if form.errors and not form.non_field_errors %}

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

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

{{ error }}

{% endfor %} {% endif %}
{% 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 %}
{% csrf_token %}
{{ form.username.errors }} {{ form.username.label_tag }} {{ form.username }}
{{ form.password.errors }} {{ form.password.label_tag }} {{ form.password }}




To create a new admin user or reset a password, run:
cd data/   # run commands inside your data folder
archivebox manage createsuperuser <username>
archivebox manage changepassword <username>

{% has_real_admin_users as real_admins_exist %} {% if not real_admins_exist %} (or set env vars ADMIN_USERNAME + ADMIN_PASSWORD) {% endif %}
{% endblock %}