Fix variable name in settings

This commit is contained in:
Kumi 2022-08-08 15:34:45 +00:00
parent 23a4a491b9
commit 163dab3187
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 10 additions and 10 deletions

View file

@ -68,11 +68,11 @@ if "MySQL" in ASK.config:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': CONFIG_FILE.config.get("MySQL", "Database"),
'USER': CONFIG_FILE.config.get("MySQL", "Username"),
'PASSWORD': CONFIG_FILE.config.get("MySQL", "Password"),
'HOST': CONFIG_FILE.config.get("MySQL", "Host", fallback="localhost"),
'PORT': CONFIG_FILE.config.getint("MySQL", "Port", fallback=3306)
'NAME': ASK.config.get("MySQL", "Database"),
'USER': ASK.config.get("MySQL", "Username"),
'PASSWORD': ASK.config.get("MySQL", "Password"),
'HOST': ASK.config.get("MySQL", "Host", fallback="localhost"),
'PORT': ASK.config.getint("MySQL", "Port", fallback=3306)
}
}

View file

@ -2,14 +2,14 @@
Debug = 0
# [MySQL]
# Database = academon
# Username = academon
# Database = dumuzid
# Username = dumuzid
# Password = secret123!
# Host = localhost
# Port = 3306
# [S3]
# AccessKey = academon
# AccessKey = dumuzid
# SecretKey = !!!verysecret!!!
# Bucket = academon
# Endpoint = https://minio.acade.mon
# Bucket = dumuzid
# Endpoint = https://minio.dumuzid