checks.py 391 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
from django.contrib.staticfiles.finders import get_finders


def check_finders(app_configs=None, **kwargs):
    """Check all registered staticfiles finders."""
    errors = []
    for finder in get_finders():
        try:
            finder_errors = finder.check()
        except NotImplementedError:
            pass
        else:
            errors.extend(finder_errors)
    return errors