主要是因为在模块中创建了template目录,后改名为templates,所以就将settings.py中一些配置文件改了 解决方法: image.png 然后会有修改前和修改后的配置文件对比 改为修改前的即可