From 163dab318739c90675c2624b11e15f4d4145a4c0 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 8 Aug 2022 15:34:45 +0000 Subject: [PATCH] Fix variable name in settings --- dumuzid/settings.py | 10 +++++----- settings.dist.ini | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dumuzid/settings.py b/dumuzid/settings.py index d70bbfb..f56550e 100644 --- a/dumuzid/settings.py +++ b/dumuzid/settings.py @@ -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) } } diff --git a/settings.dist.ini b/settings.dist.ini index a25cf31..81dec5c 100644 --- a/settings.dist.ini +++ b/settings.dist.ini @@ -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 \ No newline at end of file +# Bucket = dumuzid +# Endpoint = https://minio.dumuzid \ No newline at end of file