You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone that finds themselves here looking for a solution. This is what I did as a workaround in my project:
# my_app/utils.pydefalias_default_storage(*args):
fromdjango.core.files.storageimportstoragesreturnstorages["default"] # or another key# settings.pyTHUMBNAIL_STORAGE="my_app.utils.alias_default_storage"fromsorl.thumbnailimportimagesfrommy_app.utilsimportalias_default_storageimages.get_or_create_storage=alias_default_storage
There is also an additional problem when sorl-thumbnail is used in conjunction with filer because filer at the moment has a similar problem. To fix this particular issue there is at least no need to manually patch code but you do have to explicitly set the FILER_STORAGES engine options:
# settings.pyFILER_STORAGES= {
"public": {
"main": {
"ENGINE": "storages.backends.s3.S3Storage",
# Mirror the OPTIONS kwargs provided to your django storage"OPTIONS": {
"bucket_name": media_bucket_name,
"querystring_auth": False,
},
},
}
}
sorl/thumbnail/images.py:23 - storage options parameter is missing
check this way:
https://github.com/django/django/blob/b0ec87b8578147be4357c90eabcd2b916c780810/django/core/files/storage/handler.py#L38C38-L38C38
The text was updated successfully, but these errors were encountered: