Python - import 'csrf_exempt' -- django

Import csrf_exempt

To import csrf_exempt, Add the following line to the top of your code.

from django.views.decorators.csrf import csrf_exempt

 

For more information about csrf_exempt:
Django csrf_exempt