TemplatesSetting
Load templates using template.loader.get_template() which is configured based on settings.TEMPLATES.
Methods
get_template()
@classmethod
def get_template(
template_name: string
) - > django.template.Template
Load templates using template.loader.get_template() which is configured based on settings.TEMPLATES.
Parameters
| Name | Type | Description |
|---|---|---|
| template_name | string | The path or identifier of the template file to be loaded from the configured template directories |
Returns
| Type | Description |
|---|---|
django.template.Template | A compiled template object that can be rendered with a context |