#19629 closed Uncategorized (invalid)
CSRF verification failed. Request aborted. when following instructions for comments
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi,
I introduced comments in my web site using this page https://docs.djangoproject.com/en/dev/ref/contrib/comments/#comment-template-tags, and I get an error page : CSRF verification failed. Request aborted. with the help :
Reason given for failure : CSRF token missing or incorrect.
Change History (3)
follow-up: 2 comment:1 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
I got the same issue, check my demo: http://walkupdt.pythonanywhere.com/accounts/login/
username: test2
password: 111111
I added {% csrf_token %}
within <form>
already but still got the error like this: CSRF token missing or incorrect.
how should I do?
Replying to Aymeric Augustin:
Please see TicketClosingReasons/UseSupportChannels.
(You most likely forgot to add
{% csrf_token %}
within your<form>
.)
comment:3 by , 8 years ago
Use the channels linked at TicketClosingReasons/UseSupportChannels. to get help. This ticket tracker is for reporting bugs in Django, not for getting help.
Please see TicketClosingReasons/UseSupportChannels.
(You most likely forgot to add
{% csrf_token %}
within your<form>
.)