diff --git a/comet/comet/settings.py b/comet/comet/settings.py index 39f1e85..1761344 100644 --- a/comet/comet/settings.py +++ b/comet/comet/settings.py @@ -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/ # 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! -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 @@ -76,8 +80,11 @@ WSGI_APPLICATION = 'comet.wsgi.application' DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': os.getenv('DATABASE'), + 'USER': os.getenv('DATABASE_USER'), + 'PASSWORD': os.getenv('DATABASE_PASS'), + 'HOST': os.getenv('DATABASE_URL'), } } diff --git a/comet/manage.py b/comet/manage.py old mode 100755 new mode 100644