django.template.exceptions.TemplateDoesNotExist: index.html可能是因为 index.html的路径不对

TemplateDoesNotExist: index.html问题解决 遇到的问题是这个: 很多博客说的解决办法是去setting中修改TEMPLATES 里面的’DIRS’: 为[os.path.join(BASE_DIR, ‘templates’)]。可是我的’DIRS’已经是这个,说明出现问题的原因不是这个。 发现在views.py中写的‘index.html’背景加深: 经过一番查询后发
相关文章
相关标签/搜索