在相应的提交页面,
Django工程的app文件的views.py添加屏蔽装饰器,(相应的函数上):
from django.views.decorators.csrf import csrf_exempt @csrf_exempt
如: