【发布时间】:2010-11-10 00:29:40
【问题描述】:
我目前有两个应用程序:
app1/
app2/
templates/
app1.html
app2.html
在 app1.html 中,我包含了 app2.html:
<!-- app1.html -->
{% include "app2.html" %}
app2 有一些动态内容:
<!-- app2.html -->
{% app2_value %}
当我显示 app1.html 时,值 app2_value 不显示。在 Django 中处理上述问题的最佳方法是什么?
【问题讨论】: