UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa6 in position 9737:

根据提示找到 python安装路径\Lib\site-packages\django\views\debug.py ,打开后将:

 

 

   with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh:

修改为

    with Path(CURRENT_DIR, 'templates', 'technical_500.html').open(encoding='utf-8') as fh:

 

 

 

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页