From 8130f27cc7186b0e5637807c01f521d20f88e78d Mon Sep 17 00:00:00 2001 From: Rokas Maciulaitis Date: Wed, 13 Nov 2019 11:58:51 +0100 Subject: [PATCH] config: disables sqlalchemy pane of flask-debugtoolbar for mysql * sqlalchemy pane cannot handle UUID in bytes format https://github.com/mgood/flask-debugtoolbar/issues/112 Closes #184 --- .../{{cookiecutter.package_name}}/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/{{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/config.py b/{{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/config.py index c2ea5f3..0afb926 100644 --- a/{{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/config.py +++ b/{{cookiecutter.project_shortname}}/{{cookiecutter.package_name}}/config.py @@ -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