I wrote a somehow custom login that works when the user inserts his 
credentials. He is simply redirected to a page with url:

url(r'^(?P<user_id>\d+)/$', 'auth.views.main', name='main'),

Now that I try to add @login_decorators but I'm facing problems.
For example, I have the view def main(request,user_id): where the 
redirected template after the login listens.
When I add @login_required(login_url='/login/') to that main, when the user 
tries to login nothing happens, I remain to the login page and in the 
terminal I get:
 "GET /1000/ HTTP/1.1" 302 0
 "GET /login/?next=/1000/ HTTP/1.1" 200 6201

What happens?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/T4a3yrBm140J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to