Opened 4 years ago

Closed 4 years ago

Last modified 2 months 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 Changed 4 years ago by Aymeric Augustin

Resolution: invalid
Status: newclosed

Please see TicketClosingReasons/UseSupportChannels.

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

comment:2 in reply to:  1 Changed 2 months ago by Walkup

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 Changed 2 months ago by Tim Graham

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