错误如下
解决方案
在需要用到表单提交的文件上面添加语句
from django.views.decorators.csrf import csrf_exempt @csrf_exempt
即可完美解决