get_template
Load and return a template for the given name.
Raise TemplateDoesNotExist if no such template exists.
def get_template(
template_name: string,
using: string = None
) - > Template
Load and return a template for the given name.
Parameters
| Name | Type | Description |
|---|---|---|
| template_name | string | The path or identifier of the template file to be loaded. |
| using | string = None | The name of a specific template engine to use for loading; if None, all configured engines are searched in order. |
Returns
| Type | Description |
|---|---|
Template | A template object compatible with the engine that loaded it, used for rendering content. |