first: use <input type="hidden" name="next" value='{{next_url}}'> in your html template.
second: you can do it in your login method: def login(request): if reqeust.GET: #do something u want. return render_to_response('your html template', {next_url:request.GET.get('next',None)}) if request.POST: if login():#do login next_url = request.POST.get('next',None) if next_url: return HttpResponseRedirect('next_url') else: return HttpResponseRedirect('where u want') On 1月11日, 上午10时39分, Weldan <mwel...@gmail.com> wrote: > hi. can anyone show me how to do this . after successfully login user not > redirected to request.path. thanks for 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-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.