2017-11-16 15:57:49 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
from .base import * # noqa: F401,F403
|
|
|
|
|
|
|
|
|
|
|
|
DEBUG = os.environ.get('DEBUG', False)
|
|
|
|
|
|
|
|
|
2017-11-19 01:57:29 +00:00
|
|
|
ALLOW_UPLOADS = False
|
|
|
|
|
|
|
|
|
2017-11-16 15:57:49 +00:00
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
|
|
|
|
|
|
SECRET_KEY = os.environ['SECRET_KEY']
|
|
|
|
|
|
|
|
|
|
|
|
# Database
|
|
|
|
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
'NAME': os.environ['RDS_DB_NAME'],
|
|
|
|
'USER': os.environ['RDS_USERNAME'],
|
|
|
|
'PASSWORD': os.environ['RDS_PASSWORD'],
|
|
|
|
'HOST': os.environ['RDS_HOSTNAME'],
|
|
|
|
'PORT': os.environ['RDS_PORT'],
|
|
|
|
}
|
|
|
|
}
|