Django中自定义模板标签:template.Library()

建立py文件引入template包 from django import template # 注册自定义标签,注册过系统才能认识,写法固定 register = template.Library()
相关文章
相关标签/搜索