title: Django --CSRF token missing or incorrect
body: <p>So I am getting Forbidden (403) CSRF verification failed. Request aborted. Reason given for failure: CSRF token missing or incorrect.<br>
  I have the 'django.middleware.csrf.CsrfViewMiddleware', in my middleware_classes.
  Here is my template</p>
  
  <pre><code>&lt;form name="input" action="/login/" method="Post"&gt; {% csrf_token %}
  &lt;input type="submit" value="Submit"&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Here is my view</p>
  
  <pre><code>from django.shortcuts import render_to_response
  from django.core.context_processors import csrf
  from django.template import RequestContext
  def login(request):
       csrfContext = RequestContext(request)
       return render_to_response('foo.html', csrfContext)
  </code></pre>
  
  <p>Well I am new to Django and most web development, but I cannot seem to find the problem here. Any help would be much appreciated!</p>
  
  <p>Also i have tried the method in the django documentation</p>
  
  <pre><code>c = {}
  c.update(csrf(request))
  # ... view code here
  return render_to_response("a_template.html", c)
  </code></pre>