Putting a django login form on every page
- by asciitaxi
I'd like the login form (AuthenticationForm from django.contrib.auth) to appear on every page in my site if the user is not logged in. When the user logs in, they will be redirected to the same page. If there is an error, the error will be shown on the same page with the form.
I suppose you'd need a context processor to provide the form to every…