标签:
filter过滤器:它是一种最便捷的转化变量输出格式的方法 eg.{{ship_date|date:"F,jY"}} 此处通过管道符将变量ship_date传递给date过滤器,同时指定参数,date过滤器将根据指定参数,格式化输出;
django模板系统
原文地址:http://www.cnblogs.com/506740640zl/p/5867043.html