import environ
env = environ.Env()
env.read_env(".env")

config = {
    "user": env.str("MYSQL_USER", ""),
    "password": env.str("MYSQL_PASSWORD", ""),
    "host": env.str("MYSQL_HOSTNAME", ""),
    "database": env.str("MYSQL_DATABASE", ""),
    "raise_on_warnings": env.bool("MYSQL_RAISE_ON_WARNING", ""),
}


def set_configs(user=None, password=None, database=None):
    config["user"] = user
    config["password"] = password
    config["database"] = database

@@ -78,24 +78,31 @@
 %22: env.str(%22
+YOURLS_
 MYSQL_USER%22,
@@ -128,24 +128,31 @@
 %22: env.str(%22
+YOURLS_
 MYSQL_PASSWO
@@ -178,24 +178,31 @@
 %22: env.str(%22
+YOURLS_
 MYSQL_HOSTNA
@@ -203,24 +203,33 @@
 HOSTNAME%22, %22
+localhost
 %22),%0A    %22dat
@@ -245,16 +245,23 @@
 nv.str(%22
+YOURLS_
 MYSQL_DA
@@ -309,16 +309,23 @@
 v.bool(%22
+YOURLS_
 MYSQL_RA
@@ -341,18 +341,21 @@
 RNING%22, 
-%22%22
+False
 ),%0A%7D%0A%0A%0Ad

Update _config.py