django-debug-toolbar

Django can' t load Module 'debug_toolbar': No module named 'debug_toolbar'

Django can' t load Module 'debug_toolbar': No module named 'debug_toolbar' Question: When I try running the project, Django can not load the django-debug-toolbar plugin for some reason. Error message says: web_1 | ModuleNotFoundError: No module named ‘debug_toolbar’ Here is my settings.py INSTALLED_APPS = [ # … ‘django.contrib.staticfiles’, # … ‘debug_toolbar’, ] MIDDLEWARE = [ # …

Total answers: 5

django-debug-toolbar breaking on admin while getting sql stats

django-debug-toolbar breaking on admin while getting sql stats Question: Environment:django debug toolbar breaking while using to get sql stats else it’s working fine on the other pages, breaking only on the pages which have sql queries. Request Method: GET Request URL: http://www.blog.local/admin/ Django Version: 1.9.7 Python Version: 2.7.6 Installed Applications: [ …. ‘django.contrib.staticfiles’, ‘debug_toolbar’] Installed …

Total answers: 4

Django debug toolbar: how do I profile a file download?

Django debug toolbar: how do I profile a file download? Question: My Django webapp lets users download text files that are generated on the fly: response = HttpResponse(my_file_contents) response[‘Content-Disposition’] = ‘attachment; filename=”my file.txt”‘ return response I installed Django Debug Toolbar (0.11.0, since I cannot get 1.0.1 to work), but when I click to make the …

Total answers: 4

Django toolbar not showing up

Django toolbar not showing up Question: 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 the …

Total answers: 5

django-debug-toolbar not showing up

django-debug-toolbar not showing up Question: I looked at other questions and can’t figure it out… I did the following to install django-debug-toolbar: pip install django-debug-toolbar added to middleware classes: MIDDLEWARE_CLASSES = ( ‘django.middleware.common.CommonMiddleware’, ‘django.contrib.sessions.middleware.SessionMiddleware’, ‘django.middleware.csrf.CsrfViewMiddleware’, ‘django.contrib.auth.middleware.AuthenticationMiddleware’, ‘django.contrib.messages.middleware.MessageMiddleware’, # Uncomment the next line for simple clickjacking protection: # ‘django.middleware.clickjacking.XFrameOptionsMiddleware’, ‘debug_toolbar.middleware.DebugToolbarMiddleware’, ) 3 Added INTERNAL_IPS: INTERNAL_IPS = …

Total answers: 37

Django Debug Toolbar: understanding the time panel

Django Debug Toolbar: understanding the time panel Question: I’m running the Django Debug Toolbar to profile my site and try to figure out why certain views are taking so long. It’s been immensely valuable with regards to seeing what queries I’m running and how much they’re costing me, but I can’t understand how to read …

Total answers: 1

How do I see the Django debug toolbar?

How do I see the Django debug toolbar? Question: I have a Django webapp. I have installed the debug_toolbar middleware and module. However, my webapps don’t have the debug toolbar pull-out. How do I actually see the debug toolbar? Is there something more I need to do? Do I need to use a particular template …

Total answers: 1

How to use django-debug-toolbar on AJAX calls?

How to use django-debug-toolbar on AJAX calls? Question: I’m curious if there’s a reasonable way to use the (amazing) django-debug-toolbar with AJAX queries. For example, I use a jQuery $.get with a bunch of parameters to hit a Django URL and load it inline. If I have an error with that, it isn’t registered on …

Total answers: 4