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 not working from a static IP on a virtual machine

I have a virtual machine and i have dedicated it a static IP for local usage. 192.168.1.23 I have django running on the VM on 127.0.0.1:8000. I install django-debug-toolbar on the app and then apply the following settings: DEBUG =…
user1629366
  • 1,931
  • 5
  • 20
  • 30
2
votes
5 answers

Django toolbar not showing up

We installed the django toolbar yesterday on our remote server and have been trying for it to show on the page itself. I have gone through all the questions here and on google about it and have all the settings the way they are suppose to be. Like…
us1415
  • 83
  • 2
  • 9
1
vote
2 answers

Is there a way to use/bring up a console when viewing templates (using Django Debug Toolbar)?

I love Django Debug Toolbar and I mainly use it just to see the variables passed to the template (shown under the "Templates" tab on the right menu). But the variables are shown like this {'form':
hobbes3
  • 28,078
  • 24
  • 87
  • 116
1
vote
1 answer

Django: Do many signals slow down performance?

The debug_toolbar tells me I have 44 receivers from 12 signals both in the frontend and in the django-admin. Is that normal? Does this slow down performance? Is there anything I should check/fix according to you? I might have messed up something…
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
1
vote
1 answer

Pyramid debug_toolbar: disabled perfomance tab with Python 2.6, but enabled with python 3.2

In fact it is not neccessary for me to have this tab active (I mean my most preferable tabs are sqlalchemy, renderings and request vars), but now I want to optimise my views, so I need this tab enabled. Strange that it works only with Python 3 (on…
Vitalii Ponomar
  • 10,686
  • 20
  • 60
  • 88
1
vote
2 answers

How to solve 'x similar queries' in Django

I have a view that takes over 80 seconds to serve. The SQL tab from django-debug-toolbar says I have 422 total queries, from which 210 are similar. The view calculates a weekly rate (revenue / miles) for 35 weeks of current year for each commodity…
Valeriu
  • 11
  • 6
1
vote
0 answers

Django Debug toolbar is not showing though `view page source` is showing debug tool's html

I am a beginner at Django. Django-debug-tool is not showing. I have gone through the official documentation step by step. But It did work for me. I have seen lots of existing answers as well seems it doesn't work. Interestingly from the browser when…
1
vote
0 answers

Django debug toolbar giving error about static file location

For the entire time I've been working on this project, I have had no problems with django debug toolbar, but suddenly, when I have it enabled, it gives me the error: The joined path (/images/user/blank-avatar.png) is located outside of the base…
PoDuck
  • 1,381
  • 15
  • 38
1
vote
1 answer

Django-Debug-Toolbar doesn't appear

I am trying a lot to appear Debug-tool but it doesn't appear. First I installed it using pipenv: pipenv install django-debug-toolbar Here settings.py: INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.auth", …
1
vote
1 answer

Query time in django debug toolbar

I see time of query QUERY = 'SELECT COUNT_BIG(*) AS [__count] FROM ... in Django debug toolbar. Is it pure perfomance of database or dirty time that includes handling of query by Django and third-party libraries?
1
vote
1 answer

extra query after logging in to the site (django3.2)

Why after logging in to the site, an extra query is taken on all pages to get that user information? Is this related to Django it self? Or can this extra query be deleted and optimized? What the Django-debug-toolbar shows on all pages: SELECT •••…
1
vote
1 answer

django debug toolbar: no such session

enter image description hereI've been trying to set up the Django debug toolbar. I follow every step in documentation, I add the path in urls.py I add the middleware I add the debugtoolbar in Installed apps, but yet I come up with this…
1
vote
1 answer

Django-debug-toolbar not showing error 403 forbidden

I was trying to use django-debug-toolbar but it doesnt show up at all, so i tried inspecting my page and i found out theres actually a erro 403 forbidden that is hiding the toolbar. I've tried everything i knew and searched on the internet like a…
1
vote
0 answers

Query Optimization and profiling for celery tasks

Django-debug-toolbar and Django-silk are two famous tools for profiling HTTP requests. Is it possible to analyze a celery task or any other function inside the code? for instance, I have a celery task like this: def main_task(): while…
1
vote
2 answers

Django give Error 500 for all static files like CSS and Images, when DEBUG is False

I've tried different solutions already posted by users, but they didn't work for me. settings.py of Project BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = False ALLOWED_HOSTS = ["*"] STATIC_URL =…