Thanks, I probably had the same problem ("Attribute Record no defined for ProfilerMiddleWare") or something like that, but this def works. I use Ubuntu 20.04 with python 3.8.10
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't undertand where should I use the code
app = ProfilerMiddleware(app)
I'm using app factory pattern.
Can you help? :)
you can use it at the place where you initially create your Flask app:
Hey, this didn't work. But this (inside my
create_app
function) did:Thanks, I probably had the same problem ("Attribute Record no defined for ProfilerMiddleWare") or something like that, but this def works. I use Ubuntu 20.04 with python 3.8.10