Because django's docs are wrong.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
vote.js

README

Django's docs are wrong wrt csrf AJAX HTTP POST requests. This is the right way to do it.