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

get_absolute_url very busy database

When I load a product page, I want other products to be offered on that page. But when generating an absolute url for each product, the database is accessed. Accordingly, if there are 10 products on the page, then there will be + 10 calls to the…
0
votes
1 answer

Django debug toolbar loads but doesn't show on the local server even after proper installation

I have installed django debug toolbar correctly on a pipenv environment and done the main steps, such as adding internal_ips of 127.0.0.1 and adding the debug toolbar to installed_apps and middleware but still whenever I run the server and open a…
DrHakeshi
  • 1
  • 2
0
votes
0 answers

Django debug toolbar not showing view class name

I am using a django-debug-toolbar==3.4.0 with Django==4.0.5. Everything works except I see this on the debug toolbar: The expected string should be the class name: DashboardView not "backend_base.views.view". Tha class itself is very simple: class…
0
votes
1 answer

Django debug tool bar not showing

enter image description here I want to show debug tool bar but it looks like above.. what's wrong?
yuuum
  • 3
  • 2
0
votes
2 answers

Django-debug-toolbar not showing

I am using django 4.0.3 and django-debug-toolbar 3.2.4. For some reason, the toolbar is not showing on my server.I tried many ways but none of them worked for me. I will be very grateful for any help settings.py INSTALLED_APPS = [ …
0
votes
1 answer

django ModuleNotFoundError: No module named 'debug-toolbar'

I just tried to install the django-debug-toolbar. I believe I followed all the steps as indicated in the docs. I am using docker, so I included the following in my settings: if os.environ.get('DEBUG'): import socket hostname, _, ips =…
Doug Smith
  • 500
  • 7
  • 21
0
votes
0 answers

Django debug toolbar

Can't see the Django Debug Toolbar on a simple html doc. New to Django and the tutorial i'm doing is a little outdated. I have done all the requirements such as ensure STATIC_URL = "static/", INSTALLED_APPS = ["django.contrib.staticfiles"], Backend…
colk84
  • 92
  • 9
0
votes
2 answers

Error: djdt is not defined how to solve this?

I just upgraded django 2.1 to django 3.0.14: then I got this error ModuleNotFoundError: No module named 'django.utils.lru_cache' in django-debug-toolbar, so I upgraded my django-debug-toolbar 1.9.1 to django-debug-toolbar 2.0 and run python…
girish kumar
  • 11
  • 1
  • 3
0
votes
1 answer

Django Debug Toolbar doesn't show

I'm using Django But Django Debug Toolbar doesn't show on Chrome & Firefox. I have done all steps for config, that said on the official site of Django-debug-toolbar. Django Version: 3.1.4 Python Version: 3.9.0
0
votes
2 answers

Django Debug Toolbar causes 404 error in DEBUG mode

After installing Django Debug Toolbar and adding all setting, I'm getting 404 error. I did command collectstatic, but that did not help. Here is my files: settings.py BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) …
Vitalii Mytenko
  • 544
  • 5
  • 20
0
votes
1 answer

Optimizing queries with Django ORM

I am using debug-toolbar to see the number of overall queries. The problem is that when I reload the page, I see different number of overall queries, given the same code and very short period of page reload intervals. I understand this is somehow…
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121
0
votes
1 answer

django query is slow, but my sql query is fast

I have a very simple vie in my django application def notProjectsView(request): context = { 'projects':notProject.objects.all(), 'title':'Not Projects | Dark White Studios' } return render(request, 'not-projects.html', context) When I…
0
votes
2 answers

django debug toolbar uploaded badly

just starting using Django (first project) and I wanted to install the Django Debug Toolbar. I did exactly as the installation guide in the documentation here said: Django Debug Toolbar Docs- Installation For some reason the page loads like…
N.Av
  • 21
  • 1
  • 6
0
votes
1 answer

Profiling database queries and latency of ordinary functions in django

We need some tool for analyzing non view functions of our django project particularly the celery-beat tasks. So, is there any tool for profiling queries and latency of running ordinary functions (not views) in a django app? Preferably, is there any…
mhk
  • 386
  • 1
  • 5
  • 18
0
votes
1 answer

Request.user has no attribute user when used in settings.py

request.user generates a AttributeError: 'WSGIRequest' object has no attribute 'user' error when I try to use it in my settings.py file. Am I doing something wrong? Settings.py: def show_toolbar(request): if DEBUG: return True #if…
rcx935
  • 217
  • 5
  • 15