My application uses Django’s login view from django.contrib.auth.views.login, with a custom template I made.
I’d like to pass my template an additional argument which will change the login page in a few ways. Actually, I’m trying to show a different login page based on the URL.
How can I pass additional arguments to the login’s view & to my custom template?
The source shows there is only one place that would influence the template context.
So your only option is to hitch a ride on
AuthenticationFormor write your own login view (which, by the way, is very simple if you look at the code).Template