diff --git a/.gitignore b/.gitignore index 78aac2e..d3b2222 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ qrtr-venv venv qrtr __pycache__ +/core/settings/local.py diff --git a/core/settings/local.py b/core/settings/local.py index ca60fe4..9a23954 100644 --- a/core/settings/local.py +++ b/core/settings/local.py @@ -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 = ['*'] \ No newline at end of file +ALLOWED_HOSTS = ['*'] diff --git a/core/settings/production.py b/core/settings/production.py new file mode 100644 index 0000000..a437ea1 --- /dev/null +++ b/core/settings/production.py @@ -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 = ['*'] \ No newline at end of file