Fix variable name in settings
This commit is contained in:
parent
23a4a491b9
commit
163dab3187
2 changed files with 10 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue