read database settings from .env file
This commit is contained in:
parent
618ede273d
commit
ac6eade412
2 changed files with 7 additions and 2 deletions
|
@ -101,8 +101,12 @@ WSGI_APPLICATION = 'core.wsgi.application'
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
'NAME': BASE_DIR / 'db.sqlite3',
|
'HOST': os.getenv('DB_HOST', 'localhost'),
|
||||||
|
'PORT': os.getenv('DB_PORT', '3306'),
|
||||||
|
'NAME': os.getenv('DB_NAME', 'system3'),
|
||||||
|
'USER': os.getenv('DB_USER', 'system3'),
|
||||||
|
'PASSWORD': os.getenv('DB_PASSWORD', 'system3'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ itypes==1.2.0
|
||||||
Jinja2==3.1.2
|
Jinja2==3.1.2
|
||||||
MarkupSafe==2.1.3
|
MarkupSafe==2.1.3
|
||||||
msgpack-python==0.5.6
|
msgpack-python==0.5.6
|
||||||
|
mysqlclient
|
||||||
openapi-codec==1.3.2
|
openapi-codec==1.3.2
|
||||||
packaging==23.2
|
packaging==23.2
|
||||||
Pillow==10.1.0
|
Pillow==10.1.0
|
||||||
|
|
Loading…
Reference in a new issue