这是个编码问题,解决方法如下
文件路径 \Lib\site-packages\django\views\debug.py
这里注意是你使用的环境,我这里使用的是python虚拟环境,所以需要改项目中的文件,之后重启服务生效
将322行
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: