title: Forbidden (403) CSRF verification failed. Request aborted.in Django
body: <p>Why does Django show this error: 'Forbidden (403)CSRF verification failed. Request aborted.' when I already have <code>{% csrf_token %}</code> in the form.</p>
  
  <p><strong><code>templates/core/signup.html</code></strong></p>
  
  <pre><code>{% block content %}
      &lt;form method="post"&gt;
          {% csrf_token %}
          {{ form.as_p }}
          &lt;button type="submit"&gt;Sign up&lt;/button&gt;
      &lt;/form&gt;
  {% endblock %}
  </code></pre>
  
  <p><strong><code>views.py</code></strong></p>
  
  <pre><code>from django.contrib.auth.forms import UserCreationForm 
  from django.views.generic.edit import CreateView 
  
  class SignUpView(CreateView): 
      template_name = 'core/signup.html' 
      form_class = UserCreationForm
  </code></pre>