Fixes instance path

This commit is contained in:
Aaron Louie 2020-02-06 14:36:02 -05:00
parent d51935244c
commit 9fb3a96a50
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ if "TESTING" in os.environ and os.environ["TESTING"] == "true":
app.config.from_pyfile('testing.py')
else:
# load the instance/config.py, if it exists, when not testing
app.config.root_path = app.instance_path
app.config.from_pyfile('config.py', silent=True)
db = SQLAlchemy(app)