![]() > pprint.pprint(vars(Product.primary_image(x))) Ok so I looked into my problem and here is what I found MediaRootS3BotoStorage = lambda: S3BotoStorage(location='media') StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static') MEDIA_URL = " % (AWS_S3_CUSTOM_DOMAIN, MEDIAFILES_LOCATION)įrom 3boto import S3BotoStorage STATIC_URL = " % (AWS_S3_CUSTOM_DOMAIN, STATICFILES_LOCATION) STATICFILES_STORAGE = 'utils.StaticRootS3BotoStorage' Running python manage.py thumbnail cleanup, python manage.py thumbnail clear, restart gunicorn takes up back to step 2Īm I missing something? Should I be looking at sorl.thumbnail or oscar templates?ĪWS_S3_CUSTOM_DOMAIN = ' s3./%s' % AWS_STORAGE_BUCKET_NAMEĭEFAULT_FILE_STORAGE = 'utils.MediaRootS3BotoStorage' System returns broken URL (missing 'media' path)Ĥ. System returns the correct working URL media/cache/XXX/YYY/ZZZ.jpg that works on first page view request.ģ. (confirmed with django admin, AWS ConsoleĢ. The image gets stored in the correct S3 bucket, media path,isĪccessible by all, and so on. Upload an image for a product using theĭashboard. ![]() ![]() This problem doesn't happen to statics at all.ġ. View) because the template seems to be truncating the URLs. For some reason yet unknown to me, a product's thumbnails disappear from viewĪfter just a single load of a page (both in Dashboard and Product Detail
0 Comments
Leave a Reply. |