pycharm专业版
pycharm社区版
- app.debug=True
- app.run(debug=True)
- app.config.update(DEBUG=True)
- 通过模块对象开启
import config
app.config.from_object(config) - 通过模块字符串
app.config.from_object(‘config’) - 还可以通过app.config.from_pyfile()方法加载
app.config.from_pyfile(‘config.py’,silent=True)