摘要:
SIMPLE_TAG 1、在APP下创建templatetags目录。必须 是templatetags 2、在templatetags目录下创建tag.py,任意名 3、在tag.py 中 from django import template register=template.Libraty() 阅读全文
posted @ 2018-09-18 20:04
谷辣辣
阅读(337)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2018-09-18 09:49
谷辣辣
阅读(198)
评论(0)
推荐(0)