title: redirect not working on form submit django 1.6
body: <p>I am trying to get a responding function to redirect to another page, however, all it seems to do is set the url of the browser and nothing else. I think the login page just reloads too. The page does not reload with new content, no errors are thrown. Here is a snippet of login form page template:</p>
  
  <pre><code>&lt;form id="loginformid" action="/basicsite/loginwithuser/" method="post" enctype="multipart/form-data"&gt;
      {% csrf_token %}
      User name: &lt;input type="text" name="username"&gt;&lt;br&gt;
      Password: &lt;input type="password" name="pwd"&gt;&lt;br&gt;
      &lt;input type="submit" value="login!"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Here is the urls.py:</p>
  
  <pre><code>url(r'^basicsite/loginwithuser', 'basicsite.views.loginwithuser'),
  url(r'^basicsite/home', 'basicsite.views.home'),
  </code></pre>
  
  <p>Here is the views.py</p>
  
  <pre><code>def login(request):
      try:
          userexists = request.session['userexists']
      except:
          userexists = 'notsubmitted'
      return render(request, LOGINPAGETEMPLATE, {'userexists':userexists})
  
  def loginwithuser(request):
      username = request.POST['username']
      passw = request.POST['pwd']
  
      try:
          u = User.objects.get(user_name=username,password=passw)
          request.session['user'] = u.user_name
          return HttpResponseRedirect('/basicste/home/')
      except:
          request.session['userexists'] = 'incorrectlogin'
          return HttpResponseRedirect('/basicste/login/')
  </code></pre>
  
  <p>Even when I just try vvv the page does the same behavior:</p>
  
  <pre><code>def loginwithuser(request):
       return HttpResponseRedirect('/basicsite/home/')
  </code></pre>