Jinja2 的 django 模板后端
django template backend for Jinja2
和
有区别吗
TEMPLATES = [
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
.......
},
]
和(从 django-jinja 包导入)
TEMPLATES = [
{
"BACKEND": "django_jinja.backend.Jinja2",
.......
},
]
这不是来自同一个包,也不具有相同的功能。
来自 django-jinja 文档 (http://niwinz.github.io/django-jinja/latest/)
Django comes with a jinja backend, why should I use django-jinja?
The Django builtin backend has a very limited set of features if we
compare it with the django template engine and in my opinion is not
very usable because it does not integrate well with the rest of django
such as its filters, template tags and preloading of templatetags,
among others.
因此,是否需要这些额外功能取决于您。
和
有区别吗TEMPLATES = [
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
.......
},
]
和(从 django-jinja 包导入)
TEMPLATES = [
{
"BACKEND": "django_jinja.backend.Jinja2",
.......
},
]
这不是来自同一个包,也不具有相同的功能。
来自 django-jinja 文档 (http://niwinz.github.io/django-jinja/latest/)
Django comes with a jinja backend, why should I use django-jinja?
The Django builtin backend has a very limited set of features if we compare it with the django template engine and in my opinion is not very usable because it does not integrate well with the rest of django such as its filters, template tags and preloading of templatetags, among others.
因此,是否需要这些额外功能取决于您。