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

Function builtin_template_path

django/views/i18n.py:20–27  ·  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

18
19
20def builtin_template_path(name):
21 """
22 Return a path to a builtin template.
23
24 Avoid calling this function at the module level or in a class-definition
25 because __file__ may not exist, e.g. in frozen environments.
26 """
27 return Path(__file__).parent / "templates" / name
28
29
30def set_language(request):

Callers 1

render_to_responseMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected