MCPcopy
hub / github.com/django/django / check_storages

Function check_storages

django/contrib/staticfiles/checks.py:24–29  ·  view source on GitHub ↗

Ensure staticfiles is defined in STORAGES setting.

(app_configs, **kwargs)

Source from the content-addressed store, hash-verified

22
23
24def check_storages(app_configs, **kwargs):
25 """Ensure staticfiles is defined in STORAGES setting."""
26 errors = []
27 if STATICFILES_STORAGE_ALIAS not in settings.STORAGES:
28 errors.append(E005)
29 return errors

Calls 1

appendMethod · 0.45