MCPcopy
hub / github.com/django/django / builtin_template_path

Function builtin_template_path

django/views/debug.py:34–41  ·  view source on GitHub ↗

Return a path to a builtin template. Avoid calling this function at the module level or in a class-definition because __file__ may not exist, e.g. in frozen environments.

(name)

Source from the content-addressed store, hash-verified

32
33
34def builtin_template_path(name):
35 """
36 Return a path to a builtin template.
37
38 Avoid calling this function at the module level or in a class-definition
39 because __file__ may not exist, e.g. in frozen environments.
40 """
41 return Path(__file__).parent / "templates" / name
42
43
44class ExceptionCycleWarning(UserWarning):

Callers 4

html_template_pathMethod · 0.70
text_template_pathMethod · 0.70
technical_404_responseFunction · 0.70
default_urlconfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected