根据提示找到 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:
根据提示找到 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: