MCPcopy
hub / github.com/django/django / watch_for_template_changes

Function watch_for_template_changes

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

Source from the content-addressed store, hash-verified

47
48@receiver(autoreload_started, dispatch_uid="template_loaders_watch_changes")
49def watch_for_template_changes(sender, **kwargs):
50 for directory in get_template_directories():
51 sender.watch_dir(directory, "**/*")
52
53
54@receiver(file_changed, dispatch_uid="template_loaders_file_changed")

Callers

nothing calls this directly

Calls 2

get_template_directoriesFunction · 0.85
watch_dirMethod · 0.80

Tested by

no test coverage detected