导入模块

from django.views.decorators.csrf import csrf_exempt

在函数前面添加修饰器

@csrf_exempt

 

posted on 2014-11-06 16:53  老梁  阅读(127)  评论(0编辑  收藏  举报