It's too common sense for people who use it normally.
Add the following to the first line of code.
python
# -*- coding: utf-8 -*-
CSRF verification failed. Request aborted.
Added to settings.py (Django 1.4.1 did not require settings)
#### **`settings.py`**
```python
MIDDLEWARE_CLASSES = (
…
'django.middleware.csrf.CsrfViewMiddleware',
…
Add the following to the template file form
{% csrf_token %}
Modifying the view file (for the code created in the tutorial)
python
from django.template import RequestContext
…
def detail(request, poll_id):
p = get_object_or_404(Poll, pk=poll_id)
#return render_to_response('polls/detail.html', {'poll': p})
return render_to_response('polls/detail.html', {'poll': p}, context_instance=RequestContext(request))
…
reference https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ref-contrib-csrf