diff --git a/djlsp/scripts/django-collector.py b/djlsp/scripts/django-collector.py index 984fa43..9a9e81e 100644 --- a/djlsp/scripts/django-collector.py +++ b/djlsp/scripts/django-collector.py @@ -262,6 +262,8 @@ def get_file_watcher_globs(self): ] for static_path in settings.STATICFILES_DIRS: + if isinstance(static_path, tuple): + static_path = static_path[1] static_folder = os.path.basename(static_path) if static_folder != "static": patterns.append(f"**/{static_folder}/**")