![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
遇到bug时
小廖同学
个人博客网址http://xiaoliaozi.com/
上面记录了自己学习的一些笔记
欢迎大家访问
展开
-
RuntimeError: The session is unavailable because no secret key was set.
RuntimeError: The session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret.在flask中遇到这种错,很容易解决,就是没有设置secret_key,django在配置文件中自动生成secre...原创 2019-11-20 18:35:07 · 5089 阅读 · 2 评论 -
关于centos nginx访问403 forbidden 问题的解决
关于centos nginx访问403 forbidden 问题的解决权限配置不正确解决办法: 设置所有父目录为755权限,设置文件为644权限可以避免权限不正确如果上面未解决问题查看SELinux status/usr/sbin/sestatus -v# 开启状态SELinux status: enabled修改配置文件# 修改...原创 2019-11-10 09:55:29 · 1171 阅读 · 0 评论 -
son.decoder.JSONDecodeError: Expecting property name enclosed in double quotes
错误:son.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 4 column 5 (char 66)原因:post请求方式,body中参数是json数据解决:双引号JSON(application/json)...原创 2019-10-26 20:19:43 · 845 阅读 · 0 评论 -
TypeError at /books/In order to allow non-dict objects to be serialized set the safe parameter to Fa
错误:TypeError at /books/In order to allow non-dict objects to be serialized set the safe parameter to False.TypeError: In order to allow non-dict objects to be serialized set the safe parameter to Fal...原创 2019-10-26 19:56:27 · 400 阅读 · 0 评论