STATIC_ROOT = os.environ.get('STATIC_ROOT', os.path.join(os.path.dirname(
    __file__), 'static'))
MEDIA_ROOT = os.environ.get('MEDIA_ROOT', os.path.join(os.path.dirname(
    __file__), 'media'))
DEFAULT_FILE_STORAGE = os.environ.get('DEFAULT_FILE_STORAGE',
    'django.core.files.storage.FileSystemStorage')
STATICFILES_STORAGE = os.environ.get('STATICFILES_STORAGE',
    'django.contrib.staticfiles.storage.StaticFilesStorage')
Upload Media from Heroku to Amazon S3