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
2
votes
1 answer

Django Debug Toolbar Won't Hide on Chrome

Clicking on Hide on the Django debug toolbar (version 1.10.1) does not work on my Google Chrome (Version 69.0.3497.100). I'm using Django 1.11.15 and I can confirm that the Hide does indeed work on Firefox. The following is output by the…
Daniel Holmes
  • 1,952
  • 2
  • 17
  • 28
2
votes
0 answers

How to setup Django logging to log to console and Debug Toolbar same time?

I try to setup logging in Django to use console and Django Debug Toolbar. By default this line logger.debug('XXXXX') log to DDT, but console stay empty. With this setup LOGGING = { 'version': 1, 'disable_existing_loggers': False, …
2
votes
1 answer

Django Debug Toolbar shows 404 on panel

My Django-Debug-Toolbar results in a Http404 as soon as I click on a Panel like "Requests". I checked my config multiple times but can't find whats wrong. Versions: django-debug-toolbar == 1.8 django == 1.11.1 settings.py # DEBUG TOOLBAR if…
Thomas Schwärzl
  • 9,518
  • 6
  • 43
  • 69
2
votes
2 answers

Selenium and django debug toolbar

My website with Django 1.11.1 and Django debug toolbar 1.8 runs fine on my development server (vagrant/gunicorn/nginx). My regular test suite runs fine. However, when I tell it to run the selenium tests, it dies with a 'djdt' is not a registered…
Denise Mauldin
  • 5,397
  • 5
  • 32
  • 51
2
votes
1 answer

django-debug-toolbar blows up when saving binary object in db. Is there a workaround?

I'm using the django-debug-toolbar, and when I try to save something in a blob field I get: DjangoUnicodeDecodeError looking through the stack trace it come from: django_debug_toolbar-0.8.4-py2.6.egg/debug_toolbar/panels/sql.py in execute 98.…
Aaron
  • 4,206
  • 3
  • 24
  • 28
2
votes
1 answer

How do I get django-debug-toolbar to only display on my ip address hosted on python anywhere?

I am trying to use django-debug-toolbar on python anywhere in a django app. It requires me to set my ip address in the settings which i've done, but the toolbar is not showing up. Upon further investigation I found that the django-debug-toolbar is…
2
votes
1 answer

Django: Exception as "No module named engine"

I'm using Django 1.7.7. I installed debug toolbar with: pip install -e git+https://github.com/django-debug-toolbar/django-debug-toolbar.git#egg=django-debug-toolbar I followed prerequisites from this page. After everything is set up I get the…
Sandy
  • 261
  • 1
  • 3
  • 13
2
votes
1 answer

Why is my cookie not being set?

I'm writing a django login view, that re-uses the generic one to do most of its heavy lifting, but I handle some details afterwards: COMPANY_COOKIE = 'last_login_company_id' def login(request, *args, **kwargs): initial_company_id =…
Chris R
  • 17,546
  • 23
  • 105
  • 172
2
votes
1 answer

Django debug toolbar import error of analysisdebug_toolbar

Trying to install the django debug toolbar and receiving the following error: Traceback (most recent call last): File "/home/user/project/manage.py", line 10, in execute_from_command_line(sys.argv) File…
odedfos
  • 4,491
  • 3
  • 30
  • 42
2
votes
1 answer

Stop werkzeug from messing my django debugging

For some https testing I needed to install Werkzeug. When accessing my site via https, Werkzeug decides that it must catch all exceptions, and takes over the role of the django-debug-toolbar and built-in django exception handling, by default,…
blueFast
  • 41,341
  • 63
  • 198
  • 344
2
votes
0 answers

Profiling Django RPC calls (Same as Django debug toolbar)

I have an application which calls Django RPCs using jsonrpclib. I need to implement some kind of profiling for these RPCs, similar to Django debug toolbar, but in this case there is no rendering of html pages. I have no idea where to start, I am…
Niyojan
  • 544
  • 1
  • 6
  • 23
2
votes
2 answers

django debug toolbar - SuspiciousFileOperation: Attempted access to '/static/_img/A/B/image01.png' denied

I recently installed django-debug-toolbar and am having trouble accessing static files on my staging server. The error message: SuspiciousFileOperation at /home/ Attempted access to '/static/_img/A/B/image01.png' denied. Traceback: File…
user673869
  • 221
  • 1
  • 3
  • 10
2
votes
1 answer

Django Debug Toolbar style is broken

I have installed django debug-toolbar, it can fetch the css and js but it still shows debug toolbar like below and also shows this at the end of the page instead of nearby, there is not js error in console. Any ideas?
tuna
  • 6,211
  • 11
  • 43
  • 63
2
votes
0 answers

On a Django sever, how do I use both django-debug-toolbar and Sentry at the same time?

I've installed Sentry on my Django server which already had django-debug-toolbar successfully installed and working. Errors were not sent to my Sentry server until I disabled django-debug-toolbar. I read the docs, and there is a "caveats" section…
taleinat
  • 8,441
  • 1
  • 30
  • 44
2
votes
1 answer

django-debug-toolbar. Can I view stacktrace from views.py?

In the past I remember I could see the python stacktrace in django-debug-toolbar. Having just installed it in my new PC (running django 1.4) I can only see the sql query and the template context. This is my configuration: DEBUG_TOOLBAR_PANELS = ( …
xpanta
  • 8,124
  • 15
  • 60
  • 104