【发布时间】:2023-04-03 20:10:01
【问题描述】:
我的 index.html 文件位于 /templates 目录中,而另一个 index.html 文件位于 /templates/hello 中。
我在/templates/hello 中创建了一个名为templates.html 的文件,它应该扩展index.html。
我可以使用 {% extends index.html %} 标记使 template.html 扩展两个 index.html 文件(来自两个目录)吗?
谢谢。
【问题讨论】:
标签: python django django-templates