Added production.py
This commit is contained in:
parent
a2e2c012c7
commit
09834c59bc
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ qrtr-venv
|
||||
venv
|
||||
qrtr
|
||||
__pycache__
|
||||
/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 = ['*']
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
18
core/settings/production.py
Normal file
18
core/settings/production.py
Normal 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 = ['*']
|
||||
Loading…
Reference in New Issue
Block a user