title: Django HttpResponseRedirect
body: <p>I have created a basic contact form, and when the user submits information, it should redirect to the "Thank You" page.</p>
  
  <p><strong>views.py</strong>:</p>
  
  <pre><code>def contact(request):
      # if no errors...
      return HttpResponseRedirect('/thanks/')
  </code></pre>
  
  <p><strong>urls.py</strong>: </p>
  
  <pre><code>(r'^contact/$', contact),
  (r'^contact/thanks/$', contact_thanks),
  </code></pre>
  
  <p>Both pages work at the hard-coded URL. However, when I submit the form on <code>/contact/</code> it redirects to <code>/contact</code> (no ending slash), which is a nonexistent page (either a 404 or an error page telling me I need a slash).</p>
  
  <p>What is the reason it not correctly redirecting, and how can I fix this?</p>
  
  <p><strong>UPDATE:</strong> the <code>return HttpResponseRedirect('/contact/thanks/')</code> is what I now have, but the problem is that the submit button (using POST) does not redirect to the URL -- it doesn't redirect at all.</p>