title: login_required - login success not redirecting to "next"
body: <p>I am googling for 2 hours now and no sign of success. </p>
  
  <p>after successfull login, I need to redirect user to the page where he was before login, using <code>next</code> parameter in the url. </p>
  
  <p>but if i do <code>print request.GET.get('next')</code>, i am getting <code>None</code> even if i have <code>next</code> in the url like <code>?next=/next-page/</code> why is this? </p>
  
  <p>my login view. </p>
  
  <pre><code>    username = request.POST.get('username_login')
      pwd = request.POST.get('pwd_login')
      user = authenticate(username=_username, password=pwd)        
      if user is not None:
          if user.is_active:
              login(request, user)
              print request.GET.get('next')
              if request.GET.get('next', False):
                  return HttpResponseRedirect(request.GET.get('next'))
              else:
                  return render_to_response("profil.html",{},context_instance=RequestContext(request))
          else:#user not active
              fail = 'account inactive' 
              return render_to_response("anmelden.html",{'fail':fail},context_instance=RequestContext(request))
  </code></pre>
  
  <p>i am using django 1.4 and i am using <code>contrib.auth.login()</code>. why cannot i redirect to the page? </p>