#34273: settings.DEFAULT_FILE_STORAGE is not the same as
settings.STORAGES["default"]
-----------------------------------------+------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Hi,
I ran tests with Django 4.2 alpha and sorl-thumbnail==12.9.0. The tests
pass but there is a deprecation warning because sorl-thumbnail uses
`THUMBNAIL_STORAGE = settings.DEFAULT_FILE_STORAGE`. I tried to change the
line in sorl-thumbnail to `THUMBNAIL_STORAGE =
settings.STORAGES["default"]`, and then many tests fail with error
messages such as "You can't use this format for your profile picture. Only
JPEG or PNG formats are accepted.". My conclusion is that
`settings.DEFAULT_FILE_STORAGE` is not the same as
`settings.STORAGES["default"]` in Django 4.2 alpha, and it looks like a
bug. Or is it a feature?
--
Ticket URL: <https://code.djangoproject.com/ticket/34273>
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/01070185c84fc694-cd3b6648-9f83-4100-a588-0722301dca1d-000000%40eu-central-1.amazonses.com.