{{{
STORAGES = {
"staticfiles": {"BACKEND": "MyCustomStorage"},
}
}}}
Which would raise a `InvalidStorageError` when trying to upload a
`FileField` somewhere. AFAIK, nothing warns the user of this
misconfiguration until this point.
I think that one might assume that the dictionary defined by the user
would be "merged" with the default value. I'm assuming that implementing
behaviour could be considered too much of breaking change to the behaviour
etablished in 4.2, but I think the documentation could outline better the
existing behaviour when only one storage is defined by the user.
Another thing that could be maybe be added is a deployment check, to make
sure that both `default` and `staticfiles` storages are present in the
setting.
[1] https://github.com/cookiecutter/cookiecutter-django/pull/4457
--
Ticket URL: <https://code.djangoproject.com/ticket/34712>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.