dj_angles.templates¶
Module Contents¶
- dj_angles.templates.get_template(template_file: str, *, raise_exception: bool = False) Any¶
Check for the template file by looking for different template file variations.
- Variations:
template file with an “.html” extension if there is no extension
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.