Slide 23
Slide 23 text
Basic 12-Factor config
# settings.py
import os
SECRET_KEY = os.getenv('SECRET_KEY')
DATABASES = {
'default': {
'NAME': os.getenv('DB_NAME'),
'HOST': os.getenv('DB_HOST'),
'USER': os.getenv('DB_USER'),
'PASSWORD': os.getenv('DB_PASSWORD'),
}
}