[Django] #19629: CSRF verification failed. Request aborted. when following instructions for comments

13 views
Skip to first unread message

Django

unread,
Jan 18, 2013, 10:17:42 AM1/18/13
to django-...@googlegroups.com
#19629: CSRF verification failed. Request aborted. when following instructions for
comments
-------------------------------+--------------------
Reporter: tomsib2011@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/19629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 18, 2013, 10:47:19 AM1/18/13
to django-...@googlegroups.com
#19629: CSRF verification failed. Request aborted. when following instructions for
comments
-------------------------------+--------------------------------------
Reporter: tomsib2011@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by aaugustin):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

Please see TicketClosingReasons/UseSupportChannels.

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

--
Ticket URL: <https://code.djangoproject.com/ticket/19629#comment:1>

Django

unread,
Dec 14, 2016, 5:17:47 PM12/14/16
to django-...@googlegroups.com
#19629: CSRF verification failed. Request aborted. when following instructions for
comments
-------------------------------+--------------------------------------
Reporter: tomsib2011@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (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 [comment:1 Aymeric Augustin]:


> Please see TicketClosingReasons/UseSupportChannels.
>
> (You most likely forgot to add `{% csrf_token %}` within your `<form>`.)

--
Ticket URL: <https://code.djangoproject.com/ticket/19629#comment:2>

Django

unread,
Dec 14, 2016, 5:30:51 PM12/14/16
to django-...@googlegroups.com
#19629: CSRF verification failed. Request aborted. when following instructions for
comments
-------------------------------+--------------------------------------
Reporter: tomsib2011@… | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.4
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (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.

--
Ticket URL: <https://code.djangoproject.com/ticket/19629#comment:3>

Reply all
Reply to author
Forward
0 new messages