{% extends "brickwork/shell/auth.html" %} {% comment %} Sign in. COPY THIS FILE into your project and edit it. It is not on the template loader path, so you cannot extend it (ADR-056). What your view must supply: form your login form brickwork ships NO authentication view, form, model, or URL, and names no field. That is deliberate: allauth calls the identifier field "login", django.contrib.auth calls it "username", and a template that hard-coded either would break the other. bw_form renders whatever fields your form has, so this same file works with allauth, django.contrib.auth, or your own backend without edits. Which means the URL names below are PLACEHOLDERS. Replace them with your own, or the page will 500 on render for a name that does not exist in your project. For allauth they are account_login / account_signup / account_reset_password; for django.contrib.auth, login / password_reset. States: the form's own valid/invalid states; bw_form renders both per-field and non-field errors automatically, so a failed login (a wrong password) needs no extra wiring in this file. Accessibility: inherits shell/auth.html's skip link, lang/dir/theme attributes and themed bare-prose-link colour; the page's own
New here? Create an account