Django中自定義模板標籤:template.Library()

建立py文件引入template包 from django import template # 註冊自定義標籤,註冊過系統才能認識,寫法固定 register = template.Library()
相關文章
相關標籤/搜索