From 02a2428dde02f547021348b573184d742f2721b0 Mon Sep 17 00:00:00 2001 From: Julio Seijas Date: Thu, 29 Aug 2024 14:30:27 +0200 Subject: [PATCH] local db reference in config --- .gitignore | 3 ++- config.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 03f1f9b..36ac74d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__/ .env .vscode -.db/ \ No newline at end of file +.db/ +instance/ \ No newline at end of file diff --git a/config.py b/config.py index 28bd0af..409df2f 100644 --- a/config.py +++ b/config.py @@ -8,8 +8,7 @@ class Config(object): SQLALCHEMY_TRACK_MODIFICATIONS = False class LocalConfig(Config): - basedir = os.path.abspath(os.path.dirname(__file__)) - SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir,'.db', 'local.db') + SQLALCHEMY_DATABASE_URI = 'sqlite:///local.db' DEBUG = True class GithubCIConfig(Config):