导入模块 from django.views.decorators.csrf import csrf_exempt 在函数前面添加修饰器 @csrf_exempt 转载于:https://www.cnblogs.com/chunjiaodelei/p/4079319.html