Check out example codes for "csrf_exempt". It will help you in understanding the concepts better.

Code Example 1

#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

Learn ReactJs, React Native from akashmittal.com