2018年9月5日

django csrf使用教程,解决Forbidden (403)CSRF verification failed. Request aborted.

摘要: Django版本号:1.11.15 django中post请求报错:Forbidden (403)CSRF verification failed. Request aborted. HelpReason given for failure: CSRF cookie not set. 方法1:不使用 阅读全文

posted @ 2018-09-05 15:38 kingofyz 阅读(5541) 评论(0) 推荐(3)

django ajax报错解决:You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set.

摘要: Django版本号:1.11.15 django中ajax请求报错:You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirec 阅读全文

posted @ 2018-09-05 15:34 kingofyz 阅读(1833) 评论(0) 推荐(0)

django使用session报错:no such table: django_session

摘要: Django版本:1.11.15 使用session的代码:request.session['key'] = value 运行后报错:no such table: django_session 解决办法: 执行如下命令,初始化数据库python manage.py migrate再次运行,可以了 初 阅读全文

posted @ 2018-09-05 11:59 kingofyz 阅读(480) 评论(0) 推荐(0)

导航