1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #27854 -- Skipped subsequent checks if STATICFILES_DIRS is not a list or tuple.

This commit is contained in:
Jacob Walls 2021-03-01 08:42:22 -05:00 committed by Mariusz Felisiak
parent f55f3ce831
commit be8faa7c75

View File

@ -75,6 +75,7 @@ class FileSystemFinder(BaseFinder):
hint='Perhaps you forgot a trailing comma?',
id='staticfiles.E001',
))
return errors
for root in settings.STATICFILES_DIRS:
if isinstance(root, (list, tuple)):
prefix, root = root