#34273: settings.DEFAULT_FILE_STORAGE is not the same as
settings.STORAGES["default"]
-------------------------------------+-------------------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: closed
Component: File | Version: 4.2
uploads/storage |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by אורי):
Replying to [comment:1 Mariusz Felisiak]:
> > I tried to change the line in sorl-thumbnail to `THUMBNAIL_STORAGE =
settings.STORAGES["default"]`, and then many tests fail ...
>
> `STORAGES["default"]` is a dictionary not a class name so you should use
`THUMBNAIL_STORAGE = settings.STORAGES["default"]["BACKEND"]` instead, see
[https://docs.djangoproject.com/en/4.2/ref/settings/#storages docs].
It is written on https://docs.djangoproject.com/en/dev/releases/4.2/ :
The `DEFAULT_FILE_STORAGE` setting is deprecated in favor of
`STORAGES["default"]`.
You should write there how to convert from `settings.DEFAULT_FILE_STORAGE`
to `settings.STORAGES["default"]["BACKEND"]`
--
Ticket URL: <https://code.djangoproject.com/ticket/34273#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070185c8967fde-4eefca3e-c7a9-49dd-b3ab-9d9631f0dc2f-000000%40eu-central-1.amazonses.com.