make default config into a constant
diff --git a/alembic/env.py b/alembic/env.py
index ccb69bf..fe74ea5 100644
--- a/alembic/env.py
+++ b/alembic/env.py
@@ -13,10 +13,10 @@ config = context.config
if config.config_file_name is not None:
fileConfig(config.config_file_name)
-from go_ji import config as go_ji_config # noqa: E402
+from go_ji import CONFIG as GO_JI_CONFIG # noqa: E402
from go_ji.db import Base # noqa: E402
-config.set_main_option("sqlalchemy.url", go_ji_config["DB_URL"])
+config.set_main_option("sqlalchemy.url", GO_JI_CONFIG["DB_URL"])
target_metadata = Base.metadata
# other values from the config, defined by the needs of env.py,
diff --git a/go_ji/__init__.py b/go_ji/__init__.py
index 5477d6a..e42b9d5 100644
--- a/go_ji/__init__.py
+++ b/go_ji/__init__.py
@@ -12,15 +12,15 @@ from go_ji.db import create_session as create_db_session
VALID_SLUG = re.compile(r"^\w[-\w]*$", re.ASCII)
-config = Config("")
-config["DB_URL"] = "sqlite:///go-ji.db"
-config.from_prefixed_env("GO_JI")
+CONFIG = Config("")
+CONFIG["DB_URL"] = "sqlite:///go-ji.db"
+CONFIG.from_prefixed_env("GO_JI")
def create_app(config_override: dict[str, Any] = {}) -> Flask:
app = Flask(__name__, instance_relative_config=True)
- app.config.from_mapping(config)
+ app.config.from_mapping(CONFIG)
app.config.from_mapping(config_override)
if "TESTING" not in app.config: