change debug in app
This commit is contained in:
parent
9936a89171
commit
963f42b248
|
@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
ml).
|
ml).
|
||||||
|
|
||||||
## testing
|
## testing
|
||||||
|
- [added] #312 Placeholder: new, edit, update. (manually and with excel).
|
||||||
|
|
||||||
## [2.3.0] - 2022-07-12
|
## [2.3.0] - 2022-07-12
|
||||||
- [added] #281 Add selenium test.
|
- [added] #281 Add selenium test.
|
||||||
|
|
|
@ -41,10 +41,10 @@ app.register_blueprint(workbench)
|
||||||
# configure & enable CSRF of Flask-WTF
|
# configure & enable CSRF of Flask-WTF
|
||||||
# NOTE: enable by blueprint to exclude API views
|
# NOTE: enable by blueprint to exclude API views
|
||||||
# TODO(@slamora: enable by default & exclude API views when decouple of Teal is completed
|
# TODO(@slamora: enable by default & exclude API views when decouple of Teal is completed
|
||||||
csrf = CSRFProtect(app)
|
# csrf = CSRFProtect(app)
|
||||||
# csrf.protect(core)
|
# csrf.protect(core)
|
||||||
# csrf.protect(devices)
|
# csrf.protect(devices)
|
||||||
app.config["SQLALCHEMY_RECORD_QUERIES"] = True
|
# app.config["SQLALCHEMY_RECORD_QUERIES"] = True
|
||||||
app.config['PROFILE'] = True
|
# app.config['PROFILE'] = True
|
||||||
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30])
|
# app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30])
|
||||||
app.run(debug=True)
|
# app.run(debug=True)
|
||||||
|
|
Reference in New Issue