If a user is not logged in, then on each page, I have a login form.
This form posts to /accounts/login/ which does calls
contrib.auth.views.login. This view only logs in a user if the
session.test_cookie_worked().

So this means that from each page I need to call,
if not request.user.is_authenticated():
        if not request.session.test_cookie_worked():
            request.session.set_test_cookie()

Is there a easier way?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to