From 6a09559b7055ed34e815ba682e8fa7455c6dc527 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Mon, 20 Jun 2022 12:10:52 +0100 Subject: [PATCH] Database URI absolute path fix --- ref-test/app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/app/config.py b/ref-test/app/config.py index 79b607d..48aa4f1 100644 --- a/ref-test/app/config.py +++ b/ref-test/app/config.py @@ -13,7 +13,7 @@ class Config(object): SECRET_KEY = os.getenv('SECRET_KEY') SERVER_NAME = os.getenv('SERVER_NAME') SESSION_COOKIE_SECURE = True - SQLALCHEMY_DATABASE_URI = f'sqlite:///{Path(DATA)}/database.db' + SQLALCHEMY_DATABASE_URI = f'sqlite:///{Path(os.path.abspath(f"{DATA}/database.db"))}' SQLALCHEMY_TRACK_MODIFICATIONS = False MAIL_SERVER = os.getenv('MAIL_SERVER')