在请求的页面函数前加上下面两句
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
模板的from下面加上{% csrf_token %}
posted on 2014-09-30 15:36 ChrisPaul 阅读(243) 评论(0) 编辑 收藏 举报