This commit is contained in:
Hugo LEVY-FALK 2019-02-05 14:05:11 +01:00
parent 56c0818a1e
commit 854921cce3
2 changed files with 12 additions and 5 deletions

View file

@ -20,13 +20,17 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret! # SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'i*l535ur=4$vbirl+#f!lg^5$863zbakwti=425)4h6gz_7il+' SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = eval(os.getenv('DEBUG'))
ALLOWED_HOSTS = [] ALLOWED_HOSTS = eval(os.getenv('ALLOWED_HOSTS'))
ADMINS = eval(os.getenv('ADMINS'))
EMAIL_HOST = os.getenv('EMAIL_HOST')
SERVER_EMAIL = os.getenv('SERVER_EMAIL')
# Application definition # Application definition
@ -76,8 +80,11 @@ WSGI_APPLICATION = 'comet.wsgi.application'
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.postgresql',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': os.getenv('DATABASE'),
'USER': os.getenv('DATABASE_USER'),
'PASSWORD': os.getenv('DATABASE_PASS'),
'HOST': os.getenv('DATABASE_URL'),
} }
} }

0
comet/manage.py Executable file → Normal file
View file