pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
953 stars 146 forks source link

SQLAlchemy panel not working #58

Closed pawelpogorzelski closed 11 years ago

pawelpogorzelski commented 11 years ago

I've read the docs but I can't find any place that mentions how to enable SQLAlchemy panel. It's visible, but always shows 0 queries and is unclickable as in attached screenshot. Please advise or point to some how-to as it's bugging me for some time, fdt

mgood commented 11 years ago

Are you using Flask-SQLAlchemy? That panel depends on a hook that Flask-SQLAlchemy installs to track the queries run within a request. It gets its info from get_debug_queries in Flask-SQLAlchemy which contains the recorded queries.

pawelpogorzelski commented 11 years ago

Sorry. It was my mistake that I've found out to late - I used declarative definition for SQLAlchemy not flask-sqlalchemy. After switch all is fine.