added specific settings for development and production

This commit is contained in:
Sam
2021-01-21 10:42:42 +00:00
parent adb1371599
commit 5c4c004faf
4 changed files with 37 additions and 19 deletions

View File

@@ -0,0 +1,21 @@
from back_latienda.settings.base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
# Databases configuration
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.getenv('DB_NAME'),
'USER': os.getenv('DB_USER'),
'PASSWORD': os.getenv('DB_PASSWORD'),
'HOST': os.getenv('DB_HOST'),
'PORT': os.getenv('DB_PORT'),
},
}