Hi all,

I am using the login_required decorator form
django.contrib.auth.decorators, but I want to override the second
argument which specified which url it should redirect to if the user is
not logged in.

I'm pretty new to python and everything I've tried so far has just
resulted in a syntax or name error. The only solution I have working is
to write my own decorator that calls the decorator in contrib.auth but
that seems messy.

How can I pass in the user to authenitcate and the login url arguments to
the decorator directly?

Thanks,

Mike

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