{% 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. {% endcomment %} {% load brickwork_components brickwork_forms %} {% block page_title %}Sign in - Northwind{% endblock %} {% block brand_wordmark %}Northwind{% endblock %} {% block content %}

Sign in

{% comment %} You own the
; only you know your action URL. Non-field errors ("that password is not right") render automatically through bw_form, so there is nothing to wire for the failure case. {% endcomment %} {% csrf_token %} {% bw_form form %}
{% bw_button "Sign in" type="submit" variant="primary" %}
{% comment %} Secondary links. If you use allauth's social providers, their buttons go here too. {% endcomment %}

Forgotten your password?

New here? Create an account

{% endblock %}