mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
391 B
Python
15 lines
391 B
Python
5 years ago
|
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
|