完全按照操作,404报错
来源:6-1 首页和登录页面的配置
永不止息L
2018-04-13
TemplateDoesNotExist at /
index.html
Request Method:
GET
raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
django.template.exceptions.TemplateDoesNotExist: index.html
写回答
1回答
-
永不止息L
提问者
2018-04-13
修改setting.py文件
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, "templates")], # 添加os.path.join(BASE_DIR, "templates")后解决032018-06-01
相似问题