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

Django profiling

I want to profile my Django App. My requirements are 1.inspection of sql queries 2.list of modules called for each request and their run time 3.Support for Ajax request 4.Web Page performance results like Yslow 5.Tracking vulnerabilities in the page…
shiva
  • 2,674
  • 4
  • 23
  • 37
3
votes
1 answer

How to exclude certain urls from django debug tool bar?

My settings.py file looks like- import os # This file contains Django settings for lower environments that use the Django Debug Toolbar. # Currently those envronments are DEV and QA. from core.settings import * # noqa: F403 # We need the ability…
Mahak Malik
  • 165
  • 2
  • 11
3
votes
1 answer

Cannot raise APIException from Django ViewSet

I have a method in a ViewSet where I want to validate that request.data is a list. If it is not, I would like to raise a ParseError(). However, my code crashes when I actually raise said ParseError and I don't understand why. It is a subclass of…
finngu
  • 457
  • 4
  • 23
3
votes
1 answer

Get number of sql queries in django rest framework

Suppose @login_required() def GetFollowers(request, id): obj = Follow.objects.filter(following_id=id) serializer = SearchSerializer(obj, many=True) result = JsonResponse(serializer.data, safe=False) return result I am using django…
3
votes
2 answers

Django-Debug-Toolbar not showing(disallowed MIME type)

i install django-debug-toolbar 3.2.2 and configure it step by step by Installation Django Debug Toolbar my templates is just hello.html

Hello {{ name }}

at the end, when i type python…
mohsen37
  • 101
  • 5
3
votes
0 answers

Can I use Django debug toolbar with Postman

I'm using postman for APIs request Now I want to check that if there's any N+1 query on my API I've installed Django Debug Toolbar through this guide https://django-debug-toolbar.readthedocs.io/en/latest/installation.html but don't know how to…
cyrilchau
  • 33
  • 4
3
votes
3 answers

Django-Debug-Toolbar is not showing

I am building BlogApp and I am trying to run Django-Debug-Toolbar BUT it is not showing. I have seen many answers BUT nothing worked for me. I have installed it correctly according to the Documentation I have added in installed apps , middlewares…
Lars
  • 1,234
  • 1
  • 8
  • 31
3
votes
1 answer

Django duplicate database queries

I am using django_debug_toolbar for analyzing performance of web page. What confuses me in the results is the database queries. No matter I did everything as it should be (I suppose), results tab still shows duplicate database queries warning. For…
Elgin Cahangirov
  • 1,932
  • 4
  • 24
  • 45
3
votes
0 answers

Django Debug Toolbar unexpected behaviour

I have defined two serializers for a model, ListingSerializer and DetailedSerializer. Also, there is a static function get_people_count() defined in both serializers as below: @staticmethod def get_people_count(obj): #some code When using Django…
3
votes
1 answer

SELECT typarray FROM pg_type WHERE typname = 'citext'

SELECT typarray FROM pg_type WHERE typname = 'citext' Why I am getting this query in django debug panel and what does it mean? Whenever I navigate to the new page, this query gets run as 1st then all others, same thing in the python shell using…
Horion
  • 142
  • 8
3
votes
1 answer

How to analyse the result of django debug toolbar?

From the debug result, I can see my website browser timing is really long. Basically I create 13000 items for the blog table. Seems like it takes not a long time to do sql query. The debug result My questions is how can I identify bottlenecks from…
john
  • 31
  • 1
  • 3
3
votes
0 answers

Django 1.8.17 django-debug-toolbar Logging panel

I have Django 1.8.17 and I can see django-debug-toolbar from my dashboard. I'd like to be able to log messages in Logging panel\ setting.py import logging # create logger logger =…
Alex Garulli
  • 737
  • 1
  • 12
  • 29
3
votes
3 answers

Clicking on Django debug toolbar tabs results in 404 Not Found error

I am trying to analyze and optimize my sql queries in my Django 1.10 project, and for this reason trying to setup Django Debug Toolbar. For now, I can see the toolbar appear on the left side of my browser, but when I click the tabs, I end up with…
Edgar Navasardyan
  • 4,261
  • 8
  • 58
  • 121
3
votes
1 answer

django debug toolbar and django 1.9 escaped html in queries inspect

I have following problem with Django 1.9.2 and django-debug-toolbar==1.4 the SQL queries are escaped. how to fix it?
andilabs
  • 22,159
  • 14
  • 114
  • 151
3
votes
1 answer

Django Debug Toolbar shows at root URL, but not in app URL

I have a new project and I'm trying to set up Django Debug Toolbar. First I tried the quick setup, which only involves adding 'debug_toolbar' to my list of installed apps. With this, the debug toolbar showed up when I went to my root URL, but it…
Joseph
  • 12,678
  • 19
  • 76
  • 115