Skip to content

Commit

Permalink
config: disables sqlalchemy pane of flask-debugtoolbar for mysql
Browse files Browse the repository at this point in the history
* sqlalchemy pane cannot handle UUID in bytes format
  pallets-eco/flask-debugtoolbar#112

  Closes inveniosoftware#184
  • Loading branch information
Rokas Maciulaitis committed Nov 13, 2019
1 parent f7e3b31 commit 970ebfd
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ def _(x):
{%- elif cookiecutter.database == 'mysql'%}
SQLALCHEMY_DATABASE_URI = \
'mysql+pymysql://{{cookiecutter.project_shortname}}:{{cookiecutter.project_shortname}}@localhost/{{cookiecutter.project_shortname}}'

# Disable Flask-DebugToolbar SQLAlchemy pane
# https://github.com/mgood/flask-debugtoolbar/issues/112
DEBUG_TB_PANELS = (
'flask_debugtoolbar.panels.versions.VersionDebugPanel',
'flask_debugtoolbar.panels.timer.TimerDebugPanel',
'flask_debugtoolbar.panels.headers.HeaderDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.config_vars.ConfigVarsDebugPanel',
'flask_debugtoolbar.panels.template.TemplateDebugPanel',
# 'flask_debugtoolbar.panels.sqlalchemy.SQLAlchemyDebugPanel',
'flask_debugtoolbar.panels.logger.LoggingPanel',
'flask_debugtoolbar.panels.route_list.RouteListDebugPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel')
{%- endif %}

# JSONSchemas
Expand Down

0 comments on commit 970ebfd

Please sign in to comment.