我已经按照下面的方式构建了我的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" %}