Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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 
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+8 =