摘要: inclusion_tag 多用于返回html代码片段 1. 在应用下建立 templatetags 文件夹 2. 在文件夹下建立任意名字的py文件 3.固定导入模块 from django import template register = template.Library() 4. 书写代码 阅读全文
posted @ 2021-11-25 01:02 hello飞鱼 阅读(64) 评论(0) 推荐(0)