This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inserido cofigurações para uso da Flask Took Bar
Close #6
- Loading branch information
1 parent
5403bb3
commit 870cfc3
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
'pytest', | ||
'pytest-cov', | ||
'pytest-flask', | ||
'flask-debugtoolbar', | ||
] | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from flask_debugtoolbar import DebugToolbarExtension | ||
|
||
|
||
def configure(app): | ||
""" Instancia a Debug Tool Bar para a aplicação Flask | ||
:param app: Aplicação Flask que será instanciada | ||
""" | ||
|
||
if app.config.get('DEBUG_TOOLBAR_ENABLED'): | ||
DebugToolbarExtension(app) |