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')