Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#19629 closed Uncategorized (invalid)

CSRF verification failed. Request aborted. when following instructions for comments

Reported by: tomsib2011@… 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)

comment:1 by Aymeric Augustin, 12 years ago

Resolution: invalid
Status: newclosed

Please see TicketClosingReasons/UseSupportChannels.

(You most likely forgot to add {% csrf_token %} within your <form>.)

in reply to:  1 comment:2 by Walkup, 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 Tim Graham, 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.

Note: See TracTickets for help on using tickets.
Back to Top