摘要: 1:在app文件下新建templatetags,文件名不可改,django运行时会自动寻址。 2:templatetags下新建py文件。 3:py文件里需要引用申明:from django import template // 引入模板 from django.utils.safestring i 阅读全文
posted @ 2018-10-14 13:39 云朵路过你的城南 阅读(143) 评论(0) 推荐(0)