sorl-thumbnail icon indicating copy to clipboard operation
sorl-thumbnail copied to clipboard

problem with s3 and url

Open jlariza opened this issue 8 years ago • 1 comments

Hi, I have used the library before with no problem.

Now, I just installed the last version in a new project (directly from github) and I am having an issue with s3.

For some reason, using {% thumbnail entry.image "200x150" crop='center' as im %} does not return me the full s3 path of the image in "im"; It just returns the relative cache/... The funny thing is that it creates the image at s3 (I checked on my bucket) but it does not returns the path.

Do you know what could be the problem? I am using

class MediaRootS3BotoStorage(S3BotoStorage): location = 'media'

in my settings to avoid problems that I have faced before.

thank you

jlariza avatar Aug 04 '16 00:08 jlariza

Are you using {{im.url}} ? it should return your full path using your MEDIA_URL and the file path (s3 key)

jjdelc avatar Nov 02 '16 16:11 jjdelc