django-debug-toolbar

django debug toolbar broke the admin?

独自空忆成欢 提交于 2019-12-20 04:56:17
问题 I have a little test project on which I always install and test package prior to my dev apps. Since I installed the django debug toolbar on it, I'm having the following error message when connecting to the admin site ( the other urls are fine ): NoReverseMatch at /admin/ Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': 'auth'}' not found. 0 pattern(s) tried: [] Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.8 Exception Type:

django-debug-toolbar looking for assets by relative path?

徘徊边缘 提交于 2019-12-19 09:05:08
问题 I'm trying to get django-debug-toolbar to work, and after following all the instructions, I'm getting these errors: [05/Sep/2012 15:33:35] "GET /profile/edit/ HTTP/1.1" 200 43647 [05/Sep/2012 15:33:36] "GET /profile/edit/debug_toolbar/css/toolbar.min.css HTTP/1.1" 404 86163 [05/Sep/2012 15:33:36] "GET /profile/edit/debug_toolbar/css/toolbar.min.js HTTP/1.1" 404 66260 The HTML source is calling these things relative. When I grep through the debug-toolbar sources, I see these two lines line:

Django Debug Toolbar Only Working for Admin Section

我与影子孤独终老i 提交于 2019-12-18 21:16:35
问题 Hey, I've been using Django 1.2.1 for some time now and came across Django Debug Toolbar just the other day. It looks really useful and I'm really eager to try some stuff out. I installed exactly how the readme said. Step by Step. I put the middleware at the end just in case things get caught up but I'm using quite standard middleware (common, sessions, auth and csrf). However, it won't show up on any of my pages. I've tried moving the middleware but to the same effect. It seems as if I've

How do I get django-debug-toolbar to work with dajax?

旧时模样 提交于 2019-12-13 02:59:40
问题 It seems that dajax is hi-jacking the ajax requests from django-debug-toolbar Is there anyway to work around this or a known solution? 回答1: To fix this issue, set DAJAXICE_XMLHTTPREQUEST_JS_IMPORT = False in your Django project settings. By default, Dajaxice includes the XmlHttpRequest.js library: dajaxice.core.js template __init__.py If you disable the inclusion of this third party javascript library, the Django Debug Toolbar can load panels properly. I have not noticed any issues with

Troubleshooting 5 sec Delay in Form Submission

陌路散爱 提交于 2019-12-12 03:43:22
问题 I have created a very simple form submission for users to register, requiring them to enter their email, username, and password. There is a ~5 sec delay from when I click the submit button to when the form actually submits. How can I figure out what's going on here? Here is what I have tried so far: Django Debug Toolbar - Profiling: It seems that there are clues here, but I have been unable to use this information to solve the issue using this data. Any ideas? Profiling Image Javascript I

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

核能气质少年 提交于 2019-12-11 08:14:26
问题 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': <django.forms.models.OrderForm object at 0x1033937d0>} {'csrf_token': <django.utils.functional.__proxy__ object at 0x103394cd0>} {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x103393510>, 'user': <django.utils.functional.SimpleLazyObject object at 0x10339b690>} {'debug':

How to show stacktrace in django-debug-toolbar

只谈情不闲聊 提交于 2019-12-08 00:08:29
问题 How can I force ddt to show me stacktrace? I can only see parts of templates in which queries are executed. But there are no views which generates queries. I set 'ENABLE_STACKTRACES' : True in settings but this does not help me. I have version 0.9.4. 回答1: Allow myself to quote... myself: You can patch your 0.9.4 install by changing debug_toolbar/panels/sql.py:197 to read params = map(escape, os.path.split(frame[0]) + frame[1:]) (and import os.path somewhere above). It looks like this issue

django-debug-toolbar: 'Template' object has no attribute 'engine'

倾然丶 夕夏残阳落幕 提交于 2019-12-06 12:28:43
问题 I've just tried running an existing Django project on a new computer, and I'm having trouble with django-debug-toolbar. It seems to be something to do with Jinja2. Here's the stack trace: Traceback: File "/path/to/myrepo/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 223. response = middleware_method(request, response) File "/path/to/myrepo/env/local/lib/python2.7/site-packages/debug_toolbar/middleware.py" in process_response 120. panel.generate_stats

How to show stacktrace in django-debug-toolbar

佐手、 提交于 2019-12-06 04:27:40
How can I force ddt to show me stacktrace? I can only see parts of templates in which queries are executed. But there are no views which generates queries. I set 'ENABLE_STACKTRACES' : True in settings but this does not help me. I have version 0.9.4. Allow myself to quote... myself : You can patch your 0.9.4 install by changing debug_toolbar/panels/sql.py:197 to read params = map(escape, os.path.split(frame[0]) + frame[1:]) (and import os.path somewhere above). It looks like this issue was fixed in 12fdf7e ( render_stacktrace ). 来源: https://stackoverflow.com/questions/9352158/how-to-show

Cannot get django-debug-toolbar to appear

你。 提交于 2019-12-04 00:42:31
问题 No matter what I do, I simply cannot get django-debug-toolbar to appear. I've tried everything suggested in every answer on this question. I have DEBUG=True in my settings I have django.contrib.staticfiles and debug_toolbar in INSTALLED_APPS I have 'debug_toolbar.middleware.DebugToolbarMiddleware' high up in MIDDLEWARE_CLASSES I have INTERNAL_IPS = () in my settings I tried adding print("IP Address for debug-toolbar: " + request.META['REMOTE_ADDR']) in a view, and it printed IP Address for