On Friday 17 Mar 2006 6:20 pm, Les Smithson wrote:
> Write you own login_required and use that as a decorator:
>
> from django.views.decorators.auth import user_passes_test,
> login_required
> mylogin_required = user_passes_test(lambda u: not
> u.is_anonymous(), login_url="/my/login/")
>
> @mylogin_required
> def blagh(request):

neat

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to