2017年4月28日
摘要: 1.在app中创建templatetags目录,目录名必须为templatetags 2.在目录templatetags中创建一个.py文件,例如 strFilter.py strFilter.py #强制转换成str from django import template register = t 阅读全文
posted @ 2017-04-28 14:38 程序小院 阅读(1224) 评论(0) 推荐(0) 编辑