django templates


Author: yifei / Created: Nov. 13, 2017, 7:34 p.m. / Modified: Nov. 13, 2017, 7:35 p.m. / Edit

marco

  there is no marco in django template, you just have to use include with parameters   {% include "marco.html" with arg=parameter %}  

variable

  {{ my_dict.key }} {{ my_object.attribute }} {{ my_list.0 }}   If a variable resolves to a callable, the template system will call it with no arguments and use its result instead of the callable.  

tags

 

filters


评论区