The included login view (django.contrib.auth.views.login) takes an optional "next" argument for this: http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login
Hope that helps. -Justin On Jul 31, 9:15 am, When ideas fail <andrewkenyon...@gmail.com> wrote: > I was wondering if there was a way to redirect users after login to > the page they where looking at before they logged in. > > So if they where on "/blog/" when they logged in they could be > redirected back and if they where on "/about_us/" they could be > redirected to "/about_us/"? > > I'd appreciate any help, thanks --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---