title: Django - CSRF verification failed
body: <p>I'm getting a CSRF verification failed message when trying to make a simple form from a tutorial.  I did a little research into what CSRF verification actually is, and to my knowledge, in order to use it you need one of those csrf_token tags in your html, but I don't have that</p>
  
  <p>Here's my template:</p>
  
  <pre><code>&lt;form action="/testapp1/contact/" method="post"&gt;
      {{ form.as_p }}
      &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Fairly straightforward, located at contact.html</p>
  
  <p>Here's my urlconf:
  from django.conf.urls.defaults import *</p>
  
  <pre><code>urlpatterns=patterns('testapp1.views',
      (r'^$', 'index'),
      (r'^contact/$','contact')
  )
  </code></pre>
  
  <p>The app name is testapp1.  When I type my url (http://localhost:8000/testapp1/contact), I correctly go to the form.  Then when I submit the form, I get the verification error.</p>
  
  <p>Here's my view although I don't  think it's relevant:</p>
  
  <pre><code>def contact(request):
      if request.method == 'POST': # If the form has been submitted...
          form = ContactForm(request.POST) # A form bound to the POST data
          if form.is_valid(): # All validation rules pass
              subject = form.cleaned_data['subject']
              message = form.cleaned_data['message']
              sender = form.cleaned_data['sender']
              cc_myself = form.cleaned_data['cc_myself']
              recipients = ['info@example.com']
              if cc_myself:
                  recipients.append(sender)
              print 'Sending Mail:'+subject+','+message+','+sender+','+recipients
              return HttpResponseRedirect('/thanks/') # Redirect after POST
      else:
          form = ContactForm() # An unbound form
  
      return render_to_response('contact.html', {
          'form': form,
      })
  </code></pre>