2018年5月29日

django自定义filter

摘要: 1. 在app中创建名称为templatetags的package(包含__init__.py) #创建测试文件my_tags.pyfrom django import template register=template.Library() #register的名字是固定的,不能变 @regist 阅读全文

posted @ 2018-05-29 00:07 mingxiazhichan 阅读(120) 评论(0) 推荐(0) 编辑

导航