【发布时间】:2015-06-19 01:04:01
【问题描述】:
我已经构建了我的应用程序 Django (Django 1.8),如下所示。 当我在 app1 中尝试模板或 app2 在我的应用程序的 base.html 中扩展 base.html 时,出现此错误。
TemplateDoesNotExist at /
base.html
Error during template rendering
In template /myProject/project_folder/app1/templates/app1/base.html, error at line 1
{% extends "base.html" %}
这是我的项目结构
/projekt_folder
template
base.html
/app1
/template
base.html <-- {% extends "base.html" %}
/app2
/template
base.html <-- {% extends "base.html" %}
【问题讨论】:
-
{% extends "template/base.html" %} 有效吗?
-
您的模板设置是什么?
-
请出示您的设置文件。或者dpaste它。
-
这是我的 settings.py:dpaste.com/1W06XKR
标签: python django django-templates django-views django-1.8