django.template.exceptions.TemplateDoesNotExist: index.html可能原因
TemplateDoesNotExist: index.html问题解决
原因
路径错误
index.html应该包含在templates 底下
2 由于我创建Django项目时并没有勾选templates, 然后自己在项目中添加了templates文件夹,因此setting 下没有这句话:‘DIRS’: [os.path.join(BASE_DIR, “templates”)]
如果你和...
原创
2019-08-18 16:14:46 ·
875 阅读 ·
0 评论