sorl-thumbnail
sorl-thumbnail copied to clipboard
problem with s3 and url
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
Are you using {{im.url}}
? it should return your full path using your MEDIA_URL and the file path (s3 key)