I want to pass an int parameter (user_id) from a login view to another view. Is that possible within an HttpResponseRedirect? I try something like this:
return HttpResponseRedirect("/profile/?user_id=user.id")
While my urlconf is:
(r'^profile/(?P<user_id>\d+)/$', '...')
But I don't know if that's the right way. Any suggestions?
nextargument ofloginview (docs). It will be the simpliest.