feat: using mysql/mariadb
This commit is contained in:
@@ -89,6 +89,7 @@ ASGI_APPLICATION = "item_manager.asgi.application"
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#databases
|
||||
|
||||
# SQLite 配置
|
||||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
@@ -96,6 +97,20 @@ DATABASES = {
|
||||
}
|
||||
}
|
||||
|
||||
# 读取数据库配置
|
||||
# DB_SECURE = SECURE.get("DATABASE", {}) if isinstance(SECURE, dict) else {}
|
||||
#
|
||||
# DATABASES = {
|
||||
# "default": {
|
||||
# "ENGINE": "django.db.backends.mysql",
|
||||
# "NAME": DB_SECURE.get("NAME"),
|
||||
# "USER": DB_SECURE.get("USER"),
|
||||
# "PASSWORD": DB_SECURE.get("PASSWORD"),
|
||||
# "HOST": DB_SECURE.get("HOST"),
|
||||
# "PORT": DB_SECURE.get("PORT"),
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
|
||||
|
||||
Reference in New Issue
Block a user