Fixes instance path
This commit is contained in:
parent
d51935244c
commit
9fb3a96a50
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue