mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-20 06:24:07 +01:00
Fix Database secret value missing
This commit is contained in:
parent
d050011c56
commit
ad246e3616
@ -150,25 +150,14 @@ WSGI_APPLICATION = 'core.wsgi.application'
|
|||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||||
'NAME': config('DB_NAME'),
|
'NAME': config('DB_NAME', default='github_actions'),
|
||||||
'USER': config('DB_USER'),
|
'USER': config('DB_USER', default='postgres'),
|
||||||
'PASSWORD': config('DB_PASSWORD'),
|
'PASSWORD': config('DB_PASSWORD', default='postgres'),
|
||||||
'HOST': config('DB_HOST'),
|
'HOST': config('DB_HOST', default='127.0.0.1'),
|
||||||
'PORT': config('DB_PORT'),
|
'PORT': config('DB_PORT', default='5432'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.environ.get('GITHUB_WORKFLOW'):
|
|
||||||
DATABASES = {
|
|
||||||
'default': {
|
|
||||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
||||||
'NAME': 'github_actions',
|
|
||||||
'USER': 'postgres',
|
|
||||||
'PASSWORD': 'postgres',
|
|
||||||
'HOST': '127.0.0.1',
|
|
||||||
'PORT': '5432',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user