我已经构建了我的应用程序 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" %}