Move SQLALCHEMY_ECHO to right place.

This commit is contained in:
Alexis Lahouze 2015-11-27 12:28:21 +01:00
parent 4d88fef98f
commit c4302e9b13

View File

@ -22,9 +22,9 @@ from flask.ext.assets import Environment
# The app # The app
app = Flask(__name__, static_folder=None) app = Flask(__name__, static_folder=None)
app.config['SQLALCHEMY_ECHO'] = app.debug
app.config.from_pyfile('config.cfg') app.config.from_pyfile('config.cfg')
app.config['SQLALCHEMY_ECHO'] = app.debug
db = SQLAlchemy(app) db = SQLAlchemy(app)