On Sep 16, 11:32 am, Mirto Silvio Busico <[EMAIL PROTECTED]> wrote:

>
> DJMSB.VIEWS----------------------------------------------------------------------------------
>
> from django.shortcuts import render_to_response
> from django.contrib.auth.decorators import login_required
> from django.contrib import auth
>
> @login_required
> def indice(request):
>    return render_to_response("index.html", { 'title' : 'DJMSB'})

If you change your view to:
@login_required(redirect_field_name='next')
...

it should redirect you to the page requested by the user.

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