dennisv / django-storage-swift

OpenStack Swift storage backend for Django
MIT License
86 stars 60 forks source link

Sorl thumbnail / swift storage #22

Open masterdubs opened 9 years ago

masterdubs commented 9 years ago

Hi @blacktorn, did you try implementing this with soul-thumbnail ? It return a 404 error for image. It return url of the website instead of the swift url . without sorl image is returned correctly. Is it possible to fix that ?

Thank you

pchinea commented 7 years ago

@masterdubs: It will never works. With Sorl-thumbnails, django generates images at the time of serving, with swift storage the files are not served by django but media server, so the thumbnails must be generated previously and uploaded to media server. These are two different ways of working.

https://sorl-thumbnail.readthedocs.io/en/latest/operation.html