最新回答 / weixin_慕勒8405429
https://img1.sycdn.imooc.com/down//imgsvc/2019/03/29/5c9e050185644095d909578a.zip
2023-09-21
最新回答 / 菊儿胡同
python版本和django版本不对应的问题,python3中没有decode方法,但是django还在用,因此造成了错误。在另一个环境中,用的python3.7+django3,就没有同样的错误。解决方法:打开debug.py,在第331行的open()中,加上 encoding="utf-8"with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh 改为: with Path(CURRENT_DIR, 'tem...
2022-10-29