{% extends 'registration/base.html' %} {% load django_bootstrap5 %} {% block content %} {% if form.errors %}
Неверное имя пользователя или пароль
{% endif %} {% if next %} {% if user.is_authenticated %}
Недостаточно прав для просмотра страницы
{% else %}
Необходима аутентификация
{% endif %} {% endif %}

Аутентификация

{% csrf_token %} {% bootstrap_form form layout='floating' %}
{% bootstrap_button button_type='submit' content='Войти' %} Регистрация
{% endblock %}