CSRF verification failed. Request aborted.
Reason given for failure:
CSRF token missing or incorrect.
In general, this can occur when there is a genuine Cross Site Request Forgery, or when
Django's
CSRF mechanism has not been used correctly. For POST forms, you need to
ensure:
RequestContext
Context
.{% csrf_token
%}
template tag inside each POST form thatCsrfViewMiddleware
, then you must usecsrf_protect
on any views that use the csrf_token
You're seeing the help section of this page because you have DEBUG =
in your Django settings file. Change that to
TrueFalse
,
and only the initial error message will be displayed.
You can customize this page using the CSRF_FAILURE_VIEW setting.
It looks like you're new here. If you want to get involved, click one of these buttons!