Comments (6)
This looks like it's calling Django's build in debug template tag. There is no debug.py
file in the debug toolbar.
from django-debug-toolbar.
Indeed, but why…
from django-debug-toolbar.
I've found that the problem only occurs if I enable debug_toolbar.panels.template.TemplateDebugPanel
from django-debug-toolbar.
Alex Gaynor ran into this as well if your templates have a very large context. To help alleviate these cases we've added the SHOW_TEMPLATE_CONTEXT
setting to disable including context in the template panel. People may want to disable this also if they have lazy datastructures that may trigger extra queries.
I'll close for now. If it turns out this isn't the case feel free to re-open. I should probably start a FAQ or something which covers common problems.
from django-debug-toolbar.
This is most noticable if you have 'request' in the context, because that has a large unicode representation to begin with. Combine that with many included templates and the real problem rears it's head: all template contexts are being displayed rather than the specific context for that template (due to silly short variable names).
in panels/template.py, replace pformat(d) with pformat(_d) and the problem is mostly resolved.
It shows how much people actually look in the template context in this panel :P
from django-debug-toolbar.
and as Rob just pointed out to me, this has already been fixed: http://github.com/robhudson/django-debug-toolbar/commit/97c1240a8fbeb6ed374b94a0bc630bca8a7e1d6b
from django-debug-toolbar.
Related Issues (20)
- Time panel in Debug Toolbar not clickable due to missing <a> tag HOT 1
- There is a delay in response to requests. HOT 1
- Using the toolbar with Replit HOT 5
- Dark mode text needs higher contrast HOT 6
- AttributeError: This StreamingHttpResponse instance has no `content` attribute. Use `streaming_content` instead. HOT 5
- Jinja2 dependency breaks default install HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 1
- KeyError: "alerts" in nav_subtitle if alerts stats not present HOT 2
- Release 4.4.4 seems to require Jinja2 HOT 3
- What time measures the "domLoading" entry under the time panel? HOT 2
- Crash on non-text views
- History sidebar panel keeps loading infinitely? HOT 14
- ImportError in 4.4.6 release cannot import name '_HTML_TYPES' from 'debug_toolbar.middleware' HOT 2
- Recast sentence HOT 3
- Using DDT with DRF Simple JWT HOT 7
- Debug Toolbar Button has too low contrast
- Python 3.12: No module named 'pkg_resources' HOT 2
- The debug toolbar not visible after switching local dev to docker HOT 2
- Support Yappi for profiling panel
- Update information in toolbar after htmx request HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-debug-toolbar.