forum
This commit is contained in:
Binary file not shown.
@@ -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.
Reference in New Issue
Block a user