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