根据提示找到 Django安装路径\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:
根据提示找到 Django安装路径\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: