That is an interesting setup. We just use login middleware that automatically redirects to the LogIn view with a next GET parameter.
In your situation, I would probably treat the form as ajax and create an ajax view for handling the login form processing. Just change your action URL to your ajax login view url. You would still include the form in the way you have and just add some Javascript to the form file.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
django-users...@googlegroups.com.
To post to this group, send email to
django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/52c882b9-09d5-4b58-8234-b967785650de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Matthew,
It's not a login form. It's a normal form. I don't like the AJAX way. It adds moving parts and requires a front end rework (and more tests, browser compatibility tests, potential issues with plugins blocking, etc.).