A demo Django app using django-storages with S3Boto3 backend to display images from S3 bucket, uploaded from admin interface.
Make sure you have Python installed properly. Also, install the Heroku Toolbelt and Postgres.
$ git clone git@github.com:itamaro/django-storages-boto3-demo.git
$ cd django-storages-boto3-demo
$ pipenv install
$ createdb django_storages_boto3
$ pipenv run python manage.py migrate
$ pipenv run python manage.py createsuperuser
$ pipenv run python manage.py collectstatic
$ cat <<EOF >.env
AWS_ACCESS_KEY="<Access-Key>"
AWS_SECRET_KEY="<Secret-Key>"
AWS_S3_BUCKET="S3-Bucket"
EOF
$ pipenv run heroku local -p 8000 web
Your app should now be running on localhost:8000.
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku run python manage.py createsuperuser
$ heroku config:set \
AWS_ACCESS_KEY="<Access-Key>" \
AWS_SECRET_KEY="<Secret-Key>" \
AWS_S3_BUCKET="S3-Bucket"
$ heroku open
or
Using the admin interface (with the credentials of the superuser created), create "UploadedImage" records, uploading images from your local machine, then view the images ob the home page of the app.
For more information about using Python on Heroku, see these Dev Center articles: