title: Django: HttpResponseRedirect doesnt pass RequestContext()?
body: <p>Basically, I'm trying to redirect people who aren't logged in to the login page.</p>
  
  <p>What I'm currently using is:</p>
  
  <pre><code>return render_to_response('login.html', context_instance=RequestContext(request))
  </code></pre>
  
  <p>But that leaves the url at the homepage. I'd like to have it redirect to /accounts/login/, but when I use</p>
  
  <pre><code>return HttpResponseRedirect('/accounts/login/')
  </code></pre>
  
  <p>I get the error</p>
  
  <pre><code>Key 'username' not found in &lt;QueryDict: {}&gt;
  </code></pre>
  
  <p>I understand that to mean that I <em>do</em> need to have</p>
  
  <pre><code>context_instance=RequestContext(request))
  </code></pre>
  
  <p>Is there anyway to have a proper redirect, and still pass RequestContext along?</p>