In django views,From the request how would we know from which page this view was called
def password_change(request):
if request.method == 'POST':
u=request.user
u.set_password(request.POST.get('new_password'))
u.save()
post_change_redirect= //Need old link here
return HttpResponseRedirect(post_change_redirect)