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,15 +79,25 @@ WSGI_APPLICATION = 'heroine.wsgi.application'
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
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 = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'portfolio',
'USER': 'postgres',
'PASSWORD':'rohitallu',
'HOST':'localhost',
'PASSWORD': 'rohitallu',
'HOST': 'localhost',
}
}
}
# Password validation