Do the check in middleware instead of using the login_required
decorator everywhere.

There are snippets on DjangoSnippets for it. They vary slightly in
design, so check them out and pick the one that's best for your
situation.

Briefly, your middleware will check if request.user either
is_authenticated or is_anonymous, then issue a redirect for those not
logged in.

Shawn

-- 
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