Opened 12 years ago
Closed 12 years ago
#20391 closed Uncategorized (invalid)
CSRF
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | 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
I have the following view:
@api_view(POST)
@csrf_exempt
def user_login(request):
that adheres to the django rest framework.
How can I make this view csrf exempt?
I am trying to do API calls via iphone.
Thanks.
Note:
See TracTickets
for help on using tickets.
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels