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 lnielsen committed Dec 20, 2019
1 parent e1a4d99 commit 6cd67be
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 6cd67be

Please sign in to comment.