dj_angles.templates

Module Contents

dj_angles.templates.get_template(template_file: str) django.template.Template | None

Check for the template file by looking for different template file variations.

Currently, the only other variation is looking for the template file with an underscore in front (a typical convention for partials).

Parameters:

template_file (param) – The original template file name.

Returns:

A constructed template object for the template file or None if it cannot be found.