I have set up easy thumbnails and am trying to deploy my solution on S3.
My settings file works like this:
# static file config DEFAULT_FILE_STORAGE = 's3_folder_storage.s3.DefaultStorage' DEFAULT_S3_PATH = "Media" STATICFILES_STORAGE = 's3_folder_storage. S3.StaticStorage 'STATIC_S3_PATH = "static" AWS_ACCESS_KEY_ID = os.environ.get (' AWS_ACCESS_KEY_ID ') AWS_SECRET_ACCESS_KEY = os.environ.get (' AWS_SECRET_ACCESS_KEY ') MEDIA_ROOT =' / media / 'MEDIA_URL =' https: //% s S3.amazonaws.com/media/ '% AWS_STORAGE_BUCKET_NAME STATIC_ROOT = "/% s /"% STATIC_S3_PATH STATIC_URL =' // version.33 Amazonaws.com/static/ '% AWS_STORAGE_BUCKET_NAME ADMIN_MEDIA_PREFIX = STATIC_URL +' admin / 'AWS_PRELOAD_METADATA = True CKEDITOR_UPLOAD_PATH = 'upload' AWS_DEFAULT_ACL = 'publicly-read' ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin /' I'm facing:
/ thumbnail teams / alumni / images / thumbs / aloo could not be found on TemplateSyntaxError Mni.png: [Error 30] Read-only file system : '/ Media'
After doing a lot of research, I came to know the S3 There can be any problem in implementing thumbnails easier than using.
No comments:
Post a Comment