微信小程序蓝牙开发教程带你探索物联网的便捷与魅力
876
2022-10-23
flask-debugtoolbar:调试Flask应用程序的一个工具栏
Flask Debug-toolbar
This is a port of the excellent django-debug-toolbar for Flask applications.
Installation
Installing is simple with pip:
$ pip install flask-debugtoolbar
Usage
Setting up the debug toolbar is simple:
from flask import Flaskfrom flask_debugtoolbar import DebugToolbarExtensionapp = Flask(__name__)# the toolbar is only enabled in debug mode:app.debug = True# set a 'SECRET_KEY' to enable the Flask session cookiesapp.config['SECRET_KEY'] = '
The toolbar will automatically be injected into Jinja templates when debug mode is on. In production, setting app.debug = False will disable the toolbar.
See the documentation for more information.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。