📜  访问 html 模板 django 中的特定数组索引 - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:58.903000             🧑  作者: Mango

代码示例1
Remember that the dot notation in a Django template is used for four different notations in Python. In a template, foo.bar can mean any of:

foo[bar]       # dictionary lookup
foo.bar        # attribute lookup
foo.bar()      # method call
foo[bar]       # list-index lookup