diff options
| author | Hrushikesh Vaidya <hrushikeshrv@gmail.com> | 2022-02-02 22:33:59 +0530 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-03 11:22:45 +0100 |
| commit | 832adb31f27cfc18ad7542c7eda5a1b6ed5f1669 (patch) | |
| tree | 77f9900d4753e2eacf85bb1a99c496889745896b /django/template | |
| parent | c5cd8783825b5f6384417dac5f3889b4210b7d08 (diff) | |
Fixed #33473 -- Fixed detecting changes by autoreloader in .py files inside template directories.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/autoreload.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/template/autoreload.py b/django/template/autoreload.py index cf1b20ba95..7242d68f2d 100644 --- a/django/template/autoreload.py +++ b/django/template/autoreload.py @@ -48,6 +48,8 @@ def watch_for_template_changes(sender, **kwargs): @receiver(file_changed, dispatch_uid='template_loaders_file_changed') def template_changed(sender, file_path, **kwargs): + if file_path.suffix == '.py': + return for template_dir in get_template_directories(): if template_dir in file_path.parents: reset_loaders() |
