MCPcopy
hub / github.com/django/django / watched_files

Method watched_files

django/utils/autoreload.py:315–325  ·  view source on GitHub ↗

Yield all files that need to be watched, including module files and files within globs.

(self, include_globs=True)

Source from the content-addressed store, hash-verified

313 self.directory_globs[path].add(glob)
314
315 def watched_files(self, include_globs=True):
316 """
317 Yield all files that need to be watched, including module files and
318 files within globs.
319 """
320 yield from iter_all_python_module_files()
321 yield from self.extra_files
322 if include_globs:
323 for directory, patterns in self.directory_globs.items():
324 for pattern in patterns:
325 yield from directory.glob(pattern)
326
327 def wait_for_apps_ready(self, app_reg, django_main_thread):
328 """

Callers 4

snapshot_filesMethod · 0.80
_update_watchesMethod · 0.80
test_watch_with_globMethod · 0.80

Calls 2

itemsMethod · 0.45

Tested by 2

test_watch_with_globMethod · 0.64