Is it possible to use debug toolbar on swagger docs page?
I ran server with docker compose.
base.py
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.ext.declarative import declarative_base
from flask_debugtoolbar import DebugToolbarExtension
Base = SQLAlchemy(model_class=declarative_base()).Model
def create_base(app):
db = SQLAlchemy(app, model_class=declarative_base())
Base = db.Model
app.debug = True
DebugToolbarExtension(app)
db.init_app(app)
return Base
model.py
from app.main.base import Base
from sqlalchemy import Column
class A(Base):
id = Column(
Integer,
...
)
Im using flask=1.1.2, sqlalchemy=1.4.4 I want to use flask debug toolbar so I installed flask-debugtoolbar = "^0.14.1" flask-sqlalchemy = "2.5.0"
Why sqlalchemy query not recored? Because Im using sqlalchemy such as
from sqlalchemy import Column
notfrom flask_sqlalchemy import SQLAlchemy
?I alread read https://github.com/pallets-eco/flask-debugtoolbar/issues/78 but
app.config["SQLALCHEMY_RECORD_QUERIES"] = True
andSQLALCHEMY_RECORD_QUERIES = True
on config are not solution..Is it possible to use debug toolbar on swagger docs page?
I ran server with docker compose.
base.py
model.py
__init__.py
mysql.py
session.py
repository.py
but info is
[]