title: Unable to get Django next parameter in login view
body: <p>I have a custom login view in a Django (ver 1.8.4) app.<br>
  There are times when using the app that the user will get to the login page and the URL will have a <strong>'next'</strong> parameter such as <code>http://127.0.0.1:8000/login/?next=/search/</code>,<br>
  that I want to capture and process in my login view.  </p>
  
  <p>The problem is that I am unable to do so.<br>
  I've tried <code>request.GET.get('next', '')</code> and <code>request.POST.get('next', '')</code> and <code>request.POST.get('redirect_field_name', request.GET.get('redirect_field_name', ''))</code>.  </p>
  
  <p>They all return an empty string. I've tried <code>request.path</code> and <code>request.get_full_path()</code> which returns <code>/login/</code> without the next parameter. At this point I can't figure out why this isn't working. Any help will be appreciated. Thanks.</p>