Tim Schilling
Tim Schilling
If you're looking for metrics on the app running in production, I'd suggest looking into an APM product or an observability product.
I appreciate the clarification. I can see how that is a problem. I suspect it's possible for the tollbar middleware to track how long it's been running, then present that...
Yeah, I think that's the general idea :rocket: Some initial thoughts: - What about pulling this timing logic out into a separate class to manage? That may be over-engineering though...
> If the types keep us from fixing issues we have I agree that removing them is the right thing to do. It's not getting in the way, but I...
Thank you for your opinion. The earlier discussion should cover the questions you asked. When I make the time to invest into heavily typed python, I'll probably regret this decision.
Hi @youjunxiaji, we can't look into this unless we have enough information to reproduce it. Can you reproduce this locally? Or is this only on your remote machine? What versions...
You could add some printing/logging to `show_toolbar` to see why it's failing to return True for your case. https://github.com/django-commons/django-debug-toolbar/blob/main/debug_toolbar/middleware.py#L23
You can also consider adjusting the `SHOW_TOOLBAR_CALLBACK` setting: https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
Closing as stale.
Replaced by #2193