How to integrate imagekit with S3

I would like to upload photos to S3 from django admin app and link them to my model. I found imagekit very suitable for this. How to set up imegekit to upload photos to S3 server?

+3


source to share


2 answers


Have you tried django-athumb , you will do it.

Features:



  • The primary benefit of django-athumb is that the thumbnails are generated when the user loads the original image. Instead of generating on-demand previews and making the user wait, we get it right from the start.
  • Written in a sketch code of straw
  • Simple and easy to install
  • This can run on your own hardware at a decent speed. Running it on EC2 makes it much faster.
+1


source


I am using ImageKit 2 (alpha) - with S3 just fine.

Using django-storages

http://django-storages.readthedocs.org/en/latest/index.html



in my settings:

INSTALLED_APPS = (
   ...,
   'storages',
   ...
)

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

# stops IK checking S3 all the time - main reason to use IK v2 for me
IMAGEKIT_DEFAULT_IMAGE_CACHE_BACKEND = 'imagekit.imagecache.NonValidatingImageCacheBackend' 

      

+7


source







All Articles