2👍
I had this same challenge, and chose to use Django’s ‘collectstatic’ management command to upload the files to AWS using django-storages and python-boto:
STATICFILES_DIRS = (
os.path.join(CURRENT_DIR, '_generated_media'),
)
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
Then, I pointed django-mediagenerator to the applicable S3 bucket:
PRODUCTION_MEDIA_URL = 'http://bucketname.s3.amazonaws.com/static/'
I don’t think there’s a built-in way for django-mediagenerator to use a custom storage backend when it runs the generatemedia command, though that would be the best solution, imho.
Source:stackexchange.com