📅  最后修改于: 2022-03-11 15:04:38.999000             🧑  作者: Mango
#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