I have commented out csrf processor and middleware lines in settings.py:
settings.py
122 123 TEMPLATE_CONTEXT_PROCESSORS = ( 124 \'django.contrib.auth.
The answer might be inappropriate, but I hope it helps you
class DisableCSRFOnDebug(object): def process_request(self, request): if settings.DEBUG: setattr(request, '_dont_enforce_csrf_checks', True)
Having middleware like this helps to debug requests and to check csrf in production servers.