Git Product home page Git Product logo

Comments (6)

robhudson avatar robhudson commented on September 28, 2024

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.

mikl avatar mikl commented on September 28, 2024

Indeed, but why…

from django-debug-toolbar.

mikl avatar mikl commented on September 28, 2024

I've found that the problem only occurs if I enable debug_toolbar.panels.template.TemplateDebugPanel

from django-debug-toolbar.

robhudson avatar robhudson commented on September 28, 2024

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.

SmileyChris avatar SmileyChris commented on September 28, 2024

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.

SmileyChris avatar SmileyChris commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.