feat: support vastbase

pull/15820/head^2
王晓阳 2025-08-14 14:31:31 +08:00 committed by GitHub
parent d3ec23ba85
commit 4b9c4a550e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View File

@ -246,9 +246,13 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
DB_OPTIONS = {}
DB_ENGINE = CONFIG.DB_ENGINE.lower()
if DB_ENGINE == 'vastbase':
DB_BACKEND = 'django_vastbase_backend'
else:
DB_BACKEND = f'django.db.backends.{DB_ENGINE}'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.{}'.format(DB_ENGINE),
'ENGINE': DB_BACKEND,
'NAME': CONFIG.DB_NAME,
'HOST': CONFIG.DB_HOST,
'PORT': CONFIG.DB_PORT,

View File

@ -142,7 +142,7 @@ dependencies = [
'polib>=01.2.0',
'azure-identity==1.16.0',
'azure-keyvault-secrets==4.9.0',
'psycopg2-binary==2.9.6',
"psycopg2-binary==2.9.10",
'pycountry>=024.6.1',
'premailer==3.10.0',
'azure-storage-blob==12.17.0',
@ -153,7 +153,7 @@ dependencies = [
's3transfer==0.6.1',
'xmlsec==1.3.14',
'playwright==1.53.0',
'pdf2image==1.17.0'
'pdf2image==1.17.0',
]
[project.urls]
@ -187,7 +187,8 @@ xpack = [
'huaweicloudsdkecs==3.1.52',
'huaweicloudsdkcore==3.1.52',
'volcengine-python-sdk==1.0.71',
'aliyun-python-sdk-rds==2.7.49'
'aliyun-python-sdk-rds==2.7.49',
"django-vastbase-backend==0.1.1",
]
[tool.uv.sources]