Fix variable name in settings
This commit is contained in:
parent
23a4a491b9
commit
163dab3187
|
@ -68,11 +68,11 @@ if "MySQL" in ASK.config:
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.mysql',
|
'ENGINE': 'django.db.backends.mysql',
|
||||||
'NAME': CONFIG_FILE.config.get("MySQL", "Database"),
|
'NAME': ASK.config.get("MySQL", "Database"),
|
||||||
'USER': CONFIG_FILE.config.get("MySQL", "Username"),
|
'USER': ASK.config.get("MySQL", "Username"),
|
||||||
'PASSWORD': CONFIG_FILE.config.get("MySQL", "Password"),
|
'PASSWORD': ASK.config.get("MySQL", "Password"),
|
||||||
'HOST': CONFIG_FILE.config.get("MySQL", "Host", fallback="localhost"),
|
'HOST': ASK.config.get("MySQL", "Host", fallback="localhost"),
|
||||||
'PORT': CONFIG_FILE.config.getint("MySQL", "Port", fallback=3306)
|
'PORT': ASK.config.getint("MySQL", "Port", fallback=3306)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
Debug = 0
|
Debug = 0
|
||||||
|
|
||||||
# [MySQL]
|
# [MySQL]
|
||||||
# Database = academon
|
# Database = dumuzid
|
||||||
# Username = academon
|
# Username = dumuzid
|
||||||
# Password = secret123!
|
# Password = secret123!
|
||||||
# Host = localhost
|
# Host = localhost
|
||||||
# Port = 3306
|
# Port = 3306
|
||||||
|
|
||||||
# [S3]
|
# [S3]
|
||||||
# AccessKey = academon
|
# AccessKey = dumuzid
|
||||||
# SecretKey = !!!verysecret!!!
|
# SecretKey = !!!verysecret!!!
|
||||||
# Bucket = academon
|
# Bucket = dumuzid
|
||||||
# Endpoint = https://minio.acade.mon
|
# Endpoint = https://minio.dumuzid
|
Loading…
Reference in a new issue