csrf_exempt(view)
[source]
This decorator marks a view as being exempt from the protection ensured by the middleware. Example:
1 2 3 4 5 6 | from django.views.decorators.csrf import csrf_exempt from django.http import HttpResponse @csrf_exempt def my_view(request): return HttpResponse( 'Hello world' ) |
Please login to continue.