Django-解压缩包含中的字典

时间:2019-06-16 11:22:28

标签: python django django-templates

我想用include标签打开字典的包装。

# Python
kwargs = {"dictionary": "vertical"}

# Template
{% include "test.html" with kwargs %}

{# This should be turned into this #} 
{% include "test.html" with dictionary=vertical %}

是否可以仅使用 包含标记的标签?

0 个答案:

没有答案
相关问题