I'm migrating a site from Django 1.1 to 1.2 and I can't figure out how set_test_cookie and test_cookie_worked is supposed to work when using the CSRF middleware.
I do request.session.set_test_cookie() in my login view, then on POST, I want to check request.session.test_cookie_worked(), but I never get the chance, because when cookies are disabled, the CSRF middleware kicks in and fails with "No CSRF or session cookie." That's not a surprise, and it's certainly true, but I can't figure out any way to get to a point where I can check for the test cookie and give a "cookies required" message. I feel like I'm missing something painfully obvious here. Help? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.