Skip to main content

Jinja2

Load Jinja2 templates from the built-in widget templates in django/forms/jinja2 and from apps' 'jinja2' directory.

Attributes

AttributeTypeDescription
backenddjango.template.backends.jinja2.Jinja2The Jinja2 template backend class used to initialize the template engine for rendering widgets.

Constructor

Signature

def Jinja2()

Methods


backend()

@classmethod
def backend() - > django.template.backends.jinja2.Jinja2

Returns the Jinja2 template backend class used for rendering widget templates.

Returns

TypeDescription
django.template.backends.jinja2.Jinja2The Django Jinja2 backend class used to initialize the template engine.