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
171
votes
36 answers

django-debug-toolbar not showing up

I looked at other questions and can't figure it out... I did the following to install django-debug-toolbar: pip install django-debug-toolbar added to middleware classes: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', …
AlexBrand
  • 11,971
  • 20
  • 87
  • 132
65
votes
4 answers

How to use django-debug-toolbar on AJAX calls?

I'm curious if there's a reasonable way to use the (amazing) django-debug-toolbar with AJAX queries. For example, I use a jQuery $.get with a bunch of parameters to hit a Django URL and load it inline. If I have an error with that, it isn't…
Charles Offenbacher
  • 3,094
  • 3
  • 31
  • 38
43
votes
1 answer

Django Debug Toolbar: understanding the time panel

I'm running the Django Debug Toolbar to profile my site and try to figure out why certain views are taking so long. It's been immensely valuable with regards to seeing what queries I'm running and how much they're costing me, but I can't understand…
rolling stone
  • 12,668
  • 9
  • 45
  • 63
37
votes
5 answers

After adding django-debug to App, getting "'djdt' is not a registered namespace"

My question is about setting up to use django-debug. I'm getting the above error after installing the toolbar and panel, and enabling these in my app. I've seen many suggestions for this or a closely related issue, and nothing I've tried has…
CodeMantle
  • 1,249
  • 2
  • 16
  • 25
33
votes
1 answer

How do I see the Django debug toolbar?

I have a Django webapp. I have installed the debug_toolbar middleware and module. However, my webapps don't have the debug toolbar pull-out. How do I actually see the debug toolbar? Is there something more I need to do? Do I need to use a particular…
Jon Watte
  • 6,579
  • 4
  • 53
  • 63
32
votes
4 answers

How can django debug toolbar be set to work for just some users?

Right away: yes I know about INTERNAL_IPS. I'm about to have my django app opened up at work integration and testing. I know there will be debugging and plenty modifications and/or optimizations to be made so I'd love to have the Django Debug…
j_syk
  • 6,511
  • 2
  • 39
  • 56
32
votes
10 answers

django_debug_toolbar and Docker

So I got docker and Django to work locally, first by building an image from a Dockerfile, then using Fig to get postgres image, link it to the base image, and run the localserver. Everything works just fine, except for django_debug_toolbar. For some…
Joris
  • 421
  • 4
  • 5
27
votes
4 answers

django-debug-toolbar breaking on admin while getting sql stats

Environment:django debug toolbar breaking while using to get sql stats else it's working fine on the other pages, breaking only on the pages which have sql queries. Request Method: GET Request URL: http://www.blog.local/admin/ Django Version:…
Patlola Praveen
  • 770
  • 9
  • 19
24
votes
3 answers

Does Django Debug Toolbar work with DRF?

I'm trying to setup Debug Toolbar to debug some API methods via DRF's Browsable API. I've went through the steps described on the Installation page (like updating INSTALLED_APPS, MIDDLEWARE, etc.) but still can't see any toolbar. So does Debug…
planetp
  • 14,248
  • 20
  • 86
  • 160
20
votes
5 answers

Django can' t load Module 'debug_toolbar': No module named 'debug_toolbar'

When I try running the project, Django can not load the django-debug-toolbar plugin for some reason. Error message says: web_1 | ModuleNotFoundError: No module named 'debug_toolbar' Here is my settings.py INSTALLED_APPS = [ # ... …
Browning M.
  • 411
  • 1
  • 3
  • 12
18
votes
3 answers

Django Rest Framework debug post and put requests

I use DRF extension to se json list for model, and there i can debug with debug-toolbar that GET request, but how can i debug POST and PUT requests? I have this for settings in debug mode: INSTALLED_APPS += ('debug_toolbar',) MIDDLEWARE_CLASSES +=…
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86
15
votes
1 answer

No module named settings_vars error in django debug toolbar

I am trying to use django-degub-toolbar in my django app and below are my settigns DEBUG_TOOLBAR_PANELS = ( 'debug_toolbar.panels.version.VersionDebugPanel', 'debug_toolbar.panels.timer.TimerDebugPanel', …
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
13
votes
6 answers

Cannot get django-debug-toolbar to appear

No matter what I do, I simply cannot get django-debug-toolbar to appear. I've tried everything suggested in every answer on this question. I have DEBUG=True in my settings I have django.contrib.staticfiles and debug_toolbar in INSTALLED_APPS I…
Richard
  • 62,943
  • 126
  • 334
  • 542
13
votes
5 answers

How to profile django application with respect to execution time?

My Django application is insanely slow, I want to figure out what is taking time : I tried Django-debug-toolbar but was unable to find a panel that can give me the break-up of the load time. My requirements: A stack-trace type output with time of…
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197
11
votes
3 answers

Django debug toolbar setup

I have just installed the Django debug toolbar. It was slightly fiddly and although it is working I wanted to check if this is the correct way. Here are the 4 steps that I need to achieve success: easy_install django_debug_toolbar add…
Darwin Tech
  • 18,449
  • 38
  • 112
  • 187
1
2 3
14 15