update. 更新数据填充脚本

This commit is contained in:
ngfchl
2026-04-05 12:55:57 +08:00
parent 5174407da5
commit 60366b7eb1
4 changed files with 29 additions and 12 deletions
+2 -1
View File
@@ -125,7 +125,7 @@ ASGI_APPLICATION = 'server.asgi.application'
if env('DB_REMOTE', default=False):
# mysql_connect = dj_database_url.parse(os.getenv('MYSQL_CONNECTION'), conn_max_age=0)
# print("数据库连接信息", mysql_connect)
logger.info("正在使用 PGSQL 数据库连接信息")
DATABASES = {
'default': {
'ENGINE': env('DB_ENGINE', default='dj_db_conn_pool.backends.postgresql'),
@@ -147,6 +147,7 @@ if env('DB_REMOTE', default=False):
},
}
else:
logger.info("正在使用本地 SQLite 数据库", )
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',