added test cicd settings
Signed-off-by: Jochen Mehlich <contact@jochenmehlich.de>
This commit is contained in:
parent
d986b4f8a4
commit
a9829259a6
@ -77,7 +77,16 @@ DATABASES = {
|
|||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'NAME': BASE_DIR / 'db.sqlite3',
|
||||||
}
|
},
|
||||||
|
'test' : {
|
||||||
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
|
'NAME': os.environ.get('MYSQL_DATABASE'),
|
||||||
|
'USER': os.environ.get('MYSQL_USER'),
|
||||||
|
'PASSWORD': os.environ.get('MYSQL_PASSWORD'),
|
||||||
|
'HOST': 'mysql',
|
||||||
|
'PORT': '3306',
|
||||||
|
'CONN_MAX_AGE':60,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -103,9 +112,9 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||||||
# Internationalization
|
# Internationalization
|
||||||
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
||||||
|
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'de-de'
|
||||||
|
|
||||||
TIME_ZONE = 'UTC'
|
TIME_ZONE = 'UTC+1'
|
||||||
|
|
||||||
USE_I18N = True
|
USE_I18N = True
|
||||||
|
|
||||||
@ -123,3 +132,6 @@ STATIC_URL = '/static/'
|
|||||||
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
||||||
|
|
||||||
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||||
|
|
||||||
|
if os.environ.get("DJANGO_CONFIG")=="test":
|
||||||
|
from .settings_test import *
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user