返回顶部
摘要: filter 自定义过滤器 创建 1. 在app下创建一个名为 templatetags 的python包(名称不能变) 2. 在templatetags 创建py文件 自定义名称 my_tags.py(名称自定义) 3. 在py文件中写入: 4. 写函数+装饰器 使用 5. 使用 simpleta 阅读全文
posted @ 2019-04-13 12:11 高薪程序员 阅读(380) 评论(0) 推荐(0) 编辑