newbie question: @login_required, can't get it to work
Hi All,
I'm a newbie. I would like to use the @login_required decorator, but I
don't want to redirect to the standard default accounts/login. I would
like to redirect to '/login/'
The book says add the following to the end of the settings.py file.:
import django.contrib.auth
django.contrib.auth.LOGIN_URL = '/login/'
The server says: GET /accounts/login/?login/=/save/ HTTP/1.1 404 2273
I assume that it is going the path:
/account/login/login
Any help would be appreciated!
Thanks,
Steve
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home