On Wed, Aug 8, 2012 at 11:15 AM, mapapage <[email protected]> wrote:

> I wrote a somehow custom login that works when the user inserts his
> credentials.


can give us more details on how did you implement login?



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



-- 
Regards,
Anton Baklanov

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