MCPcopy
hub / github.com/django/django / template_changed

Function template_changed

django/template/autoreload.py:55–61  ·  view source on GitHub ↗
(sender, file_path, **kwargs)

Source from the content-addressed store, hash-verified

53
54@receiver(file_changed, dispatch_uid="template_loaders_file_changed")
55def template_changed(sender, file_path, **kwargs):
56 if file_path.suffix == ".py":
57 return
58 for template_dir in get_template_directories():
59 if template_dir in file_path.parents:
60 reset_loaders()
61 return True

Callers

nothing calls this directly

Calls 2

get_template_directoriesFunction · 0.85
reset_loadersFunction · 0.85

Tested by

no test coverage detected