I just updated my django to 1.4. But I am getting the following error when I try to submit my login form:
Forbidden (403) CSRF verification failed.
I had similar issue where my app was deployed on HTTPS. I had to change setting flag CSRF_COOKIE_HTTPONLY to false so client server can access csrf cookie.
Clearing the Browser or Google Chrome cookies, I hope it will work.
The code looks fine, Django 1.3 and 1.4 auth.views.login uses RequestContext correctly. Please check: