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 d521b3c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ 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 since it cannnot handle
# UUID in bytes format
# https://github.com/mgood/flask-debugtoolbar/issues/112
DEBUG_TB_ENABLED = False
{%- endif %}

# JSONSchemas
Expand Down

0 comments on commit d521b3c

Please sign in to comment.