【发布时间】:2015-11-26 10:02:18
【问题描述】:
我有两个模板要在我的 django 项目中呈现: 这是模板'b.html'
<html>
<body>
{% include 'a.html' %}
{{ userName}}
</body>
</html>
它是“a.html”:
{{ another_name}}
我正在完成任务并将userName返回到'b.html'和another_name到'a.html',我该怎么办?应该使用render_to_response?谢谢~
【问题讨论】:
标签: django-templates