This commit is contained in:
jeremygan2021
2026-02-12 16:16:09 +08:00
parent 4ac8767659
commit 70c8608110
4 changed files with 6 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ DATABASES = {
}
# 从环境变量获取数据库配置 (Docker 环境会自动注入这些变量)
DB_HOST = os.environ.get('DB_HOST')
DB_HOST = os.environ.get('DB_HOST', '6.6.6.66')
if DB_HOST:
DATABASES['default'] = {
'ENGINE': 'django.db.backends.postgresql',

Binary file not shown.