【文件属性】:
文件名称:django_template_tags:django的自定义模板标签
文件大小:3KB
文件格式:ZIP
更新时间:2021-02-15 17:26:46
Python
django_template_tags
django的自定义模板标签。
添加标签,例如:“乘”,“范围”,“或” 使用前需要负载{%load common_tags%}
要安装:
在您的应用程序中添加“ templateteags” dit,并在“ TEMPLATES”>“ libraries”的设置中注册“ common_tags”:
TEMPLATES = [
{
'BACKEND': '...',
'DIRS': [...],
'APP_DIRS': ...,
'OPTIONS': {...}
],
'libraries': {
'common_tags': 'appname.te
【文件预览】:
django_template_tags-main
----templatetags()
--------__init__.py(0B)
--------common_tags.py(3KB)
----README.md(2KB)