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
3
votes
2 answers

MultiValueDictKeyError at /__debug__/render_panel/ "'store_id'

When I use django debug toolbar, I get the following error: MultiValueDictKeyError at /__debug__/render_panel/ "'store_id'" What am I doing wrong?
Chris Hansen
  • 7,813
  • 15
  • 81
  • 165
3
votes
2 answers

Django Debug Toolbar show queries from middleware

I am using Django Debug Toolbar to debug and optimize my website. I am also using some custom middleware to do things such as checking to see if a user is logged in and is allowed to access the url they are trying to view, querying ads, etc. In this…
Hat
  • 1,691
  • 6
  • 28
  • 44
3
votes
0 answers

Django toolbar not displaying properly

I am using django 1.6.4 and django toolbar version django-debug-toolbar==1.2. I do get the toolbar on the side but when I click on any of the menu items, it shows me the html elements from my home page within the toolbar overlay. I have done…
Chirdeep Tomar
  • 4,281
  • 8
  • 37
  • 66
3
votes
3 answers

Difficulty installing Django Debug Toolbar

I tried to install Django Panels and ran into an error. I installed using pip -- pip install django-debug-toolbar -- and it seemed to go alright. But when I added it to my project like this: INSTALLED_APPS = ( 'django.contrib.auth', …
fraxture
  • 5,113
  • 4
  • 43
  • 83
3
votes
1 answer

How to get files opened during a django page request

I want to optimize my django application, to do so, I use django_debug_toolbar to know what SQL resquests are done to compute a html page. I want to do the same thing for opened files : is there a django_debug_toolbar pluggin or is there a way to…
Eric
  • 4,821
  • 6
  • 33
  • 60
3
votes
1 answer

Django debug-toolbar wildly inaccurate summary results

I am using django debug-toolbar on django 1.4. The problem is, it gives me incorrect summary results. For example, on a landing page which produces one query (check to see if the user is logged in). DT says that there are 43 queries taking 17.27ms.…
David542
  • 104,438
  • 178
  • 489
  • 842
2
votes
1 answer

How to show stacktrace in django-debug-toolbar

How can I force ddt to show me stacktrace? I can only see parts of templates in which queries are executed. But there are no views which generates queries. I set 'ENABLE_STACKTRACES' : True in settings but this does not help me. I have version…
szaman
  • 6,666
  • 13
  • 53
  • 81
2
votes
2 answers

How do I access imported local settings without a circular import?

At the end of my settings.py file, I have: try: from local_settings import * except ImportError: pass I then have a local_settings.py file where I have some db settings, etc. In this file I would also like to do the following (in order to…
Jamie Forrest
  • 10,895
  • 6
  • 51
  • 68
2
votes
1 answer

Django reverse foreign key leading to duplicate queries

I'm trying to use ViewSet to return list of all assets with the asset type name (instead of just id) but according to django-debug-toolbar, my queries are being duplicated leading to slower results. 1 Asset type can have multiple assets. So, when I…
2
votes
1 answer

Why django debug toolbar is hidden?

I install django debug toolbar and it did not appear in the browser, when I looked at the code, I saw that it was hidden. How can I fix this?
Oleksandr
  • 206
  • 1
  • 2
  • 16
2
votes
0 answers

Can't access js file in Amazon S3

I have a website running on Django. Trying to measure its performance with Django-Debug-Toolbar. I have installed it properly, run collectstatic and the script is now in my static folder in Amazon S3 bucket. When I reload the website, I don't see…
2
votes
0 answers

javascript file loading problem in a web browser, relating to mime types, context Django debug_toolbar concerning Django/debug_toolbar versions >=3.X

I have noticed, at some point last year, that the debug_toolbar is not present anymore. Now I have found the problem, but do not actually completely understand what is happening and why. [Update: I have found an answer - see the last few paragraphs…
2
votes
1 answer

Problem with connect Django Debug Toolbar

enter image description here I connected like in instruction, when run server all is ok, but when open site I see the ERROR: 'djdt' is not a registered namespace What should I do? With what connect problem? setting.py BASE_DIR =…
Alexxx
  • 49
  • 3
2
votes
1 answer

How to set globally-accessible context variables in django template tags?

There is a template tag which returns a random element from the list. I also need to save all the elements that were in the list and the one that had been picked in context, and later depict that information in django-debug-toolbar panel. from…
toinbis
  • 747
  • 7
  • 23
2
votes
1 answer

How to debug long wait times for Django Website

I have a Django website whose response time I would like to improve. When I click intra-site links on my site the result is either an immediate loading of the next page or a 20-30 second wait before the page loads. I find no reproducible patterns in…
Good Eats
  • 333
  • 3
  • 14