I am trying to pass a custom template and form to auth.views.login. I am getting the error message. What is wrong with this?
in views.py,
def login_user(request, template_name='login.html',
redirect_field_name = None,
authentication_form = BootstrapAuthenticationForm,
extra_context=None):
response = auth.views.login(request, template_name, redirect_field_name, authentication_form)
Aucun commentaire:
Enregistrer un commentaire