Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django-在include中解包字典_Python_Django_Django Templates - Fatal编程技术网

Python Django-在include中解包字典

Python Django-在include中解包字典,python,django,django-templates,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 %} 这是否可能仅使用包含标记

我想在include标签中打开词典

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

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

{# This should be turned into this #} 
{% include "test.html" with dictionary=vertical %}
这是否可能仅使用包含标记