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 #184
  • Loading branch information
Rokas Maciulaitis authored and kpsherva committed Nov 14, 2019
1 parent 88c1e0c commit 1b7087d
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 1b7087d

Please sign in to comment.