Questions tagged [django-debug-toolbar]

The Django Debug Toolbar is a configurable set of panels that display a variety of debug information about the current request/response.

As of release v0.9.4, the Django Debug Toolbar includes panels displaying the following information:
- Django version
- Request timer
- A list of settings in settings.py
- Common HTTP headers
- GET/POST/cookie/session variable display
- Templates and context used, and their template paths
- SQL queries including time to execute and links to EXPLAIN each query
- List of signals, their args and receivers
- Logging output via Python's built-in logging, or via the logbook module

It is often referred to by its abbreviated name "DjDT".

You can find out more on its PyPi page at: http://pypi.python.org/pypi/django-debug-toolbar or in the github repository https://github.com/django-debug-toolbar/django-debug-toolbar

219 questions
6
votes
1 answer

Reduce User CPU Time on django

I'm actually working on a Django website, working with django debug toolbar, on a digital ocean small dropplet. It all work with Postgresql, Django, gunicorn and Nginx. What's bugging me is that the rending time is about 2.5 sec, and most of it is…
Spoutnik16
  • 834
  • 1
  • 10
  • 19
6
votes
3 answers

How to debug django with logging on Apache?

I have deployed my django site on Apache and there's a problem which did not occur on my development machine, so I want to print some variables out to see what is happening. I tried to use python logging module, where I did this: import os,…
Robert
  • 2,189
  • 6
  • 31
  • 38
5
votes
1 answer

What is the "elapsed time" in django-debug-toolbar?

What sort of stuff is going on in the "elapsed time" value in the Django Debug Toolbar? I assume CPU time is a part of it, but what else is going on? The more explicit you can be, the more it'll help!! Resource Value User CPU time …
Matt Parrilla
  • 3,171
  • 6
  • 35
  • 54
5
votes
2 answers

Django Debug Toolbar Install Problems

I am having issues trying to get the django-debug-toolbar up and running. I have all of the necessary info added to INSTALLED_APPS, MIDDLEWARE_CLASSES, and my ip is in the INTERNAL_IPS tuple. I have run the setup.py script and everything seems to…
HurnsMobile
  • 4,341
  • 3
  • 27
  • 39
5
votes
2 answers

django-debug-toolbar Not Working with jQuery in Django Web Site

I'm using django-debug-toolbar (newest version, v1.2.1) and I keep getting this error in the console: Empty string passed to getElementById() For this bit of code in jQuery (line 2757): ... // HANDLE: $(#id) } else { elem = document.getElementById(…
nicorellius
  • 3,715
  • 4
  • 48
  • 79
5
votes
2 answers

Django Debug toolbar shows up, but the panels return 404

It was working in the last couple of days, but now all the links on the toolbar themselves are just #
  • boatcoder
    • 17,525
    • 18
    • 114
    • 178
  • 5
    votes
    1 answer

    Why would Django (1.5.1) call Loader.load_template_source() 69 times?

    My problem originally manifested as a "maximum recursion depth exceeded" error in a fairly run-of-the-mill ListView. After digging around, I found a ton of cache hits originating in dbtemplates for every attempt I made to load the corresponding…
    5
    votes
    2 answers

    django debug toolbar not showing up for certain views

    debug toolbar doesn't show up for views which return HttpResponse() rather than render_to_response(). a view with return HttpResponse()(for test sake) won't show up debug toolbar..
    eugene
    • 39,839
    • 68
    • 255
    • 489
    4
    votes
    1 answer

    Django Debug Toolbar BaseConnectionHandler.all() error

    I am using docker and the debug toolbar gives the following error: BaseConnectionHandler.all() got an unexpected keyword argument 'initialized_only' I wrote the following code in the settings.py file : if DEBUG: MIDDLEWARE += [ …
    Sir Alidadi
    • 203
    • 2
    • 6
    4
    votes
    1 answer

    django debug toolbar throws Improperly Configured Exception

    I have django 1.9 an django-debug-toolbar==1.3.0 installed. Here is my settings.py content # debug_toolbar settings if DEBUG: INTERNAL_IPS = ('127.0.0.1',) MIDDLEWARE_CLASSES += ( 'debug_toolbar.middleware.DebugToolbarMiddleware', …
    Elon Musk
    • 332
    • 1
    • 2
    • 12
    4
    votes
    1 answer

    How to correctly set up internal ip for django-debug-toolbar

    First time i'm editing setting.py file in google cloud computing please forgive me for this silly Question ... I wanted to run django-debug-toolbar and followed every step in that tutorial. And the thing i want is the tool bar to be visible in (our…
    user4374121
    4
    votes
    1 answer

    django-debug-toolbar appears, but is empty (panels are not populating)

    Almost all of the time when I load my site the debug toolbar is empty like this: https://i.stack.imgur.com/NV4JO.jpg I have made the following configurations in my projects settings.py DEBUG = True TEMPLATE_DEBUG = DEBUG MIDDLEWARE_CLASSES = ( …
    saxman01
    • 288
    • 2
    • 9
    4
    votes
    2 answers

    How to configure Apache alias settings to let django debug toolbar work properly?

    I have a problem in OSQA. Anytime, I try to enter a user's page, "500 Error" occurs such as here: http://turkrusforum.com/users/2/mertnuhoglu/ I checked the error logs. But there was nothing there. I want to install django-debug-toolbar and debug…
    Mert Nuhoglu
    • 9,695
    • 16
    • 79
    • 117
    4
    votes
    1 answer

    Profiling Django application under uWSGI/Nginx

    I am in the process of migrating a medium-sized Django 1.4.2 application to new infrastructure and trying to optimize system's performance on new, very powerful hardware. I am using django-debug-toolbar as well as hotshots-based profiling middleware…
    MikeAr
    • 1,011
    • 8
    • 9
    4
    votes
    1 answer

    django-debug-toolbar looking for assets by relative path?

    I'm trying to get django-debug-toolbar to work, and after following all the instructions, I'm getting these errors: [05/Sep/2012 15:33:35] "GET /profile/edit/ HTTP/1.1" 200 43647 [05/Sep/2012 15:33:36] "GET…
    alexgolec
    • 26,898
    • 33
    • 107
    • 159
    1 2
    3
    14 15