Answers for "csrf_exempt"

C
6

csrf_exempt

#first you need to import this
from django.views.decorators.csrf import csrf_exempt

#now use @csrf_exempt dacorator as follows

@csrf_exempt
def exampleview(request):
	pass
	#now this view will not require csrf_token to handle post requests
Posted by: Guest on June-26-2020

Code answers related to "csrf_exempt"

Code answers related to "C"

Browse Popular Code Answers by Language