mybuddy/babybuddy/settings/docker.py

28 lines
566 B
Python
Raw Normal View History

2017-11-24 14:09:43 +00:00
import os
from .base import * # noqa: F401,F403
# Production settings
# See babybuddy.settings.base for additional settings information.
2017-11-24 14:09:43 +00:00
SECRET_KEY = os.environ.get('SECRET_KEY')
2017-11-24 14:09:43 +00:00
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', '').split(',')
2017-11-24 14:09:43 +00:00
DEBUG = os.environ.get('DEBUG', False)
2017-11-24 14:09:43 +00:00
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'postgres',
'USER': 'postgres',
'HOST': 'db',
'PORT': 5432,
}
}