报错
Forbidden (CSRF token missing or incorrect.): /account/test/
[20/Oct/2016 18:10:44] "POST /account/test/ HTTP/1.1" 403 2274
views视图内添加如下
from django.views.decorators.csrf import csrf_exempt @csrf_exempt def diff_response(request): pass
具体代码参见计划任务管理系统源码
原文:http://www.cnblogs.com/dribs/p/6971285.html