database
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Josue Gomez 2020-06-27 11:00:33 -06:00
parent 8189569eef
commit 180a62fb5e

View File

@ -79,6 +79,15 @@ WSGI_APPLICATION = 'heroine.wsgi.application'
# Database # Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
ENVIRONMENT = os.environ.get('ENVIRONMENT')
if ENVIRONMENT == 'production':
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
else:
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql', 'ENGINE': 'django.db.backends.postgresql',
@ -90,6 +99,7 @@ DATABASES = {
} }
# Password validation # Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators