{% extends 'registration/base_simple.html' %} {% load static %} {% block style %} body { display: flex; min-height: 100vh; flex-direction: column; } main { flex: 1 0 auto; } {% endblock %} {% block title %}Login{% endblock %} {% block content %}
{% csrf_token %}
{{ form.username }}
{{ form.password }}

Password dimenticata





{% endblock %} {% block script %} document.addEventListener('DOMContentLoaded', function() { {% for field, errors in form.errors.items %} {% for error in errors %} M.toast({html: '{{ error }}', classes: 'orange'}) {% endfor %} {% endfor %} }); {% endblock %} {% block footer %} {% endblock %}