|
7 | 7 | sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../../'))) |
8 | 8 |
|
9 | 9 |
|
10 | | -from flask.ext.mongoengine import MongoEngine |
| 10 | +from flask_mongoengine import MongoEngine |
11 | 11 | from flask_debugtoolbar import DebugToolbarExtension |
12 | 12 |
|
13 | 13 | app = flask.Flask(__name__) |
|
17 | 17 | app.config['SECRET_KEY'] = 'flask+mongoengine=<3' |
18 | 18 | app.debug = True |
19 | 19 | app.config['DEBUG_TB_PANELS'] = ( |
20 | | - 'flask.ext.debugtoolbar.panels.versions.VersionDebugPanel', |
21 | | - 'flask.ext.debugtoolbar.panels.timer.TimerDebugPanel', |
22 | | - 'flask.ext.debugtoolbar.panels.headers.HeaderDebugPanel', |
23 | | - 'flask.ext.debugtoolbar.panels.request_vars.RequestVarsDebugPanel', |
24 | | - 'flask.ext.debugtoolbar.panels.template.TemplateDebugPanel', |
25 | | - 'flask.ext.debugtoolbar.panels.logger.LoggingPanel', |
26 | | - 'flask.ext.mongoengine.panels.MongoDebugPanel' |
| 20 | + 'flask_debugtoolbar.panels.versions.VersionDebugPanel', |
| 21 | + 'flask_debugtoolbar.panels.timer.TimerDebugPanel', |
| 22 | + 'flask_debugtoolbar.panels.headers.HeaderDebugPanel', |
| 23 | + 'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel', |
| 24 | + 'flask_debugtoolbar.panels.template.TemplateDebugPanel', |
| 25 | + 'flask_debugtoolbar.panels.logger.LoggingPanel', |
| 26 | + 'flask_mongoengine.panels.MongoDebugPanel' |
27 | 27 | ) |
28 | 28 |
|
29 | 29 | app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False |
|
0 commit comments