Django的template自定义函数的建立和使用

首先须要在APP目录下建立一个templatetags目录python 而后在这个目录下新建一个任意名的.py文件 如 test.pydjango 建立一个template对象registerapp   from django import template from django.utils.safestring import mark_safe register =template.Libr
相关文章
相关标签/搜索