[Django]-S3 not serving media files to Django heroku app

3👍

maybe adding these would help?

STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'

STATIC_URL = 'http://' + AWS_STORAGE_BUCKET_NAME + '.s3.amazonaws.com/'
ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/'

and yes installing boto aswell

and then run pip freeze > requirements.txt just to make sure if all your dependencies are up to date

I hope it helps

Leave a comment