[Django] #24217: csrf_exempt is not working with django 1.7

24 views
Skip to first unread message

Django

unread,
Jan 24, 2015, 9:49:57 PM1/24/15
to django-...@googlegroups.com
#24217: csrf_exempt is not working with django 1.7
-------------------------------+--------------------
Reporter: dhruvagarwal | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Earlier i was using django 1.6.1 and in my code i was using csrf_exempt
decorator on some of my views.
Now i upgraded to django 1.7.1 but now csrf_exempt is not working.
It would be great if someone could tell me a solution for this

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

Django

unread,
Jan 25, 2015, 12:41:46 AM1/25/15
to django-...@googlegroups.com
#24217: csrf_exempt is not working with django 1.7
-------------------------------+--------------------------------------

Reporter: dhruvagarwal | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution:
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 ngzhian):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

I just pulled 1.7.1 and tried it, but csrf_exempt works for me.
1. I created a simple app that has a homepage with a form made up of a
text input and a submit button
2. without `csrf_exempt`, hitting submit brings me to the `403 Forbidden`
page
3. with `csrf_exempt`, my submission went fine!
Appreciate more details regarding this, e.g. source or something, or if
someone else verifies this problem.

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

Django

unread,
Jan 25, 2015, 3:30:39 AM1/25/15
to django-...@googlegroups.com
#24217: csrf_exempt is not working with django 1.7
-------------------------------+--------------------------------------
Reporter: dhruvagarwal | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution: fixed
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 dhruvagarwal):

* status: new => closed
* resolution: => fixed


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

Reply all
Reply to author
Forward
0 new messages