We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 587ba91 + 0bbe268 commit 0942519Copy full SHA for 0942519
docs/index.rst
@@ -204,6 +204,16 @@ If you use the Flask-DebugToolbar you can add
204
`'flask.ext.mongoengine.panels.MongoDebugPanel'` to the `DEBUG_TB_PANELS` config
205
list and then it will automatically track your queries.
206
207
+ from flask import Flask
208
+ from flask_debugtoolbar import DebugToolbarExtension
209
+
210
+ app = Flask(__name__)
211
+ app.config['DEBUG_TB_PANELS'] = ['flask.ext.mongoengine.panels.MongoDebugPanel']
212
+ db = MongoEngine(app)
213
+ toolbar = DebugToolbarExtension(app)
214
215
216
217
Upgrading
218
=========
219
0 commit comments