fix flask config
This commit is contained in:
parent
f1b2394f03
commit
841cceaf3f
1 changed files with 1 additions and 16 deletions
|
@ -25,22 +25,7 @@ gateway_locations = [
|
||||||
bing_api_key = ''
|
bing_api_key = ''
|
||||||
|
|
||||||
|
|
||||||
def config_app(app, **kwargs):
|
def config_app(app):
|
||||||
"""Flask app configuration
|
|
||||||
|
|
||||||
Parameters
|
|
||||||
----------
|
|
||||||
app: Flask app
|
|
||||||
debug: optional, default=False
|
|
||||||
|
|
||||||
Returns
|
|
||||||
-------
|
|
||||||
app: Flask app
|
|
||||||
"""
|
|
||||||
|
|
||||||
if kwargs.get('debug', False):
|
|
||||||
app.server.debug = True
|
|
||||||
|
|
||||||
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{db}'.format(db=path_db)
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{db}'.format(db=path_db)
|
||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue