Added production.py

This commit is contained in:
DJ Gillespie 2020-08-13 19:45:34 -06:00
parent a2e2c012c7
commit 09834c59bc
3 changed files with 20 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ qrtr-venv
venv
qrtr
__pycache__
/core/settings/local.py

View File

@ -15,4 +15,4 @@ SECRET_KEY = 'jc@r$_x4$mp-b84&+m3s@hm7kpl$br-wa&50*&xjx^^fddg6q$'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['*']

View File

@ -0,0 +1,18 @@
import os
import dj_database_url
DEFAULT_CONNECTION = dj_database_url.parse(os.environ.get("DATABASE_URL"))
DATABASES = {"default": DEFAULT_CONNECTION, }
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("SECRET_KEY")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']