Ensure staticfiles is defined in STORAGES setting.
(app_configs, **kwargs)
| 22 | |
| 23 | |
| 24 | def 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 |