Amazon AWS settings

Reads common AWS settings like AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_STORAGE_BUCKET_NAME from Heroku environment.

Django config

Simply import settings from this module into your Django project settings file:

from herokuify.aws import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_STORAGE_BUCKET_NAME

Heroku config

Use heroku config command to define the values:

heroku config:add AWS_ACCESS_KEY_ID=<key id>
heroku config:add AWS_SECRET_ACCESS_KEY=<secret key>
heroku config:add AWS_STORAGE_BUCKET_NAME=<bucket name>

Defined model attributes

Table Of Contents

Previous topic

Email configuration

Next topic

Storage Backends

Python Development

Django web development for startups and businesses.

Quality Python development and scientific applications.

Quick links

Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.