2015年7月16日

Django 表单 POST CSRF verification failed. Request aborted.错误

摘要: 这里有答案http://www.qttc.net/201209211.html总结就是1.在模板中要提交的form中加入{% csrf_token %} {% csrf_token %} {{form.as_p}} 2.把views中的 render_to_response('h1.... 阅读全文

posted @ 2015-07-16 18:08 shiftonetothree 阅读(105) 评论(0) 推荐(0) 编辑

导航