You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

checks.py 391B

5 years ago
1234567891011121314
  1. from django.contrib.staticfiles.finders import get_finders
  2. def check_finders(app_configs=None, **kwargs):
  3. """Check all registered staticfiles finders."""
  4. errors = []
  5. for finder in get_finders():
  6. try:
  7. finder_errors = finder.check()
  8. except NotImplementedError:
  9. pass
  10. else:
  11. errors.extend(finder_errors)
  12. return errors