Anybody? Bueller? On Jan 2, 8:25 pm, keynesiandreamer <keynesiandr...@gmail.com> wrote: > I have wrestled with this one for a bit and googled and looked through > documentation, so I guess its time to ask. > > I am trying make my app redirect to the last viewed page after logging > in. I am running django 1.2.4 and have had no luck so far. > > This Stack Overflow thread seemed like it would do the trick but I > have not had success with > it:http://stackoverflow.com/questions/806835/django-redirect-to-previous... > > Currently after logging in from any view I am redirected > to:http://localhost:1100/accounts/profile/ > > Currently I am trying this in settings.py: > "django.core.context_processors.request", > > With this as my login button link: > <a href="{% url django.contrib.auth.views.login %}? > next={{request.path}}">login</a> > > I also made sure to import the RequestContext in my views.py file: > from django.template import RequestContext > > Some how I get the impression this is not working. Also I noticed now > login URL has a partial next URL in > it:http://localhost:1100/accounts/login/?next= > > Suggestions? > > Thanks in advance!
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.