Jinja2
Load Jinja2 templates from the built-in widget templates in django/forms/jinja2 and from apps' 'jinja2' directory.
Attributes
| Attribute | Type | Description |
|---|---|---|
| backend | django.template.backends.jinja2.Jinja2 | The 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
| Type | Description |
|---|---|
django.template.backends.jinja2.Jinja2 | The Django Jinja2 backend class used to initialize the template engine. |