Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with s3 and url #462

Open
jlariza opened this issue Aug 4, 2016 · 1 comment
Open

problem with s3 and url #462

jlariza opened this issue Aug 4, 2016 · 1 comment

Comments

@jlariza
Copy link

jlariza commented Aug 4, 2016

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

@jjdelc
Copy link

jjdelc commented Nov 2, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants