
bug
老呂
这个作者很懒,什么都没留下…
展开
-
[Django]UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6
原因:window控制台默认gbk编码,而我们通常用的是utf8解决:打开django/views下的debug.py文件,转到line331行:with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh将其改成:with Path(CURRENT_DIR, 'templates', 'technica...原创 2020-03-20 17:33:18 · 314 阅读 · 0 评论 -
解决redis-cli连接时出现Could not connect to Redis at 127.0.0.1:6379: Connection refused
执行redis 配置文件redis-server /etc/redis/redis.conf如图:原创 2019-12-09 15:34:53 · 946 阅读 · 0 评论