Skip to content

Commit bf9f5ac

Browse files
authored
Merge pull request #119 from jasalt/main
Fix issue with tuples in `STATICFILES_DIRS`
2 parents c554448 + a866695 commit bf9f5ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

djlsp/scripts/django-collector.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ def get_file_watcher_globs(self):
262262
]
263263

264264
for static_path in settings.STATICFILES_DIRS:
265+
if isinstance(static_path, tuple):
266+
static_path = static_path[1]
265267
static_folder = os.path.basename(static_path)
266268
if static_folder != "static":
267269
patterns.append(f"**/{static_folder}/**")

0 commit comments

Comments
 (0)