Last active
August 29, 2015 14:06
-
-
Save cansadadeserfeliz/394dd27631485a3d2b76 to your computer and use it in GitHub Desktop.
Boto + sorl.thumbnails + AWS S3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boto==2.12.0 | |
sorl-thumbnail==11.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALLED_APPS = ( | |
# ... | |
'sorl.thumbnail', | |
) | |
THUMBNAIL_STORAGE = 'storages.backends.s3boto.S3BotoStorage' | |
AWS_STORAGE_BUCKET_NAME = '' | |
AWS_ACCESS_KEY_ID = '' | |
AWS_SECRET_ACCESS_KEY = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% thumbnail user.avatar "78x78" crop="center" as im %} | |
<img src="{{ im.url }}"> | |
{% endthumbnail %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment