When the django template system encounters the dot in the variable name, it will try to search in the following order

• Dictionary lookup (eg foo ["bar"])
• Property lookup (eg foo.bar)
• Method call (eg foo.bar ())
• List index lookup (eg foo [2])

Guess you like

Origin www.cnblogs.com/python99/p/12703729.html