<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Rob's Cogitations - Latest Comments in Introducing the Django Debug Toolbar</title><link>http://cogit8.disqus.com/</link><description></description><atom:link href="https://cogit8.disqus.com/introducing_the_django_debug_toolbar/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 13 Jul 2010 18:31:24 -0000</lastBuildDate><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-61956557</link><description>&lt;p&gt;This application looks really cool. Great to know about it. Allow me to Introduce this application to my site by adding your Link to my site!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Information about caves</dc:creator><pubDate>Tue, 13 Jul 2010 18:31:24 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-53433622</link><description>&lt;p&gt;With this features hopefully make extending and customizing the panels very easy. Thanks for posting!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ford Parts</dc:creator><pubDate>Tue, 01 Jun 2010 17:45:37 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-10283668</link><description>&lt;p&gt;I am having the same problem.  Can anyone shed some light on how to fix this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">adam</dc:creator><pubDate>Fri, 29 May 2009 22:50:48 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-10282314</link><description>&lt;p&gt;This is one fantastic piece of app :D. It works like a charm, right out of the box, I love it when apps play well with my site.&lt;/p&gt;&lt;p&gt;I did modify the CSS a bit so that the bar aligns to the bottom instead of the top.&lt;/p&gt;&lt;p&gt;No issues until now, let me congratulate you and the rest for this great app. Thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Federico Cáceres</dc:creator><pubDate>Fri, 29 May 2009 21:37:25 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-9521016</link><description>&lt;p&gt;First, I love this. Let me just say that.&lt;/p&gt;&lt;p&gt;Second, I'm having a little trouble getting the cache watcher to work in development. I run memcached in production, and a database table based system in development. When I check the table in the DB I see that pages are caching, but I'm not seeing any results in the toolbar. Ideas on what I'm screwing up?&lt;/p&gt;&lt;p&gt;Thanks in advance everybody.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Mon, 18 May 2009 22:09:13 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-7052257</link><description>&lt;p&gt;very useful, thanks so much...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">szinspire</dc:creator><pubDate>Mon, 09 Mar 2009 23:46:06 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-6996486</link><description>&lt;p&gt;Awesome, I am a symfony developer, and have ported parts of the toolbar to my django app, but you went the whole 9 yards.  Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">davedash</dc:creator><pubDate>Sun, 08 Mar 2009 14:01:17 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-6146908</link><description>&lt;p&gt;Thanks for the response. Yes, the authentication software does appear to trigger at least one query in one of its __unicode__ methods, so that answers that question.&lt;/p&gt;&lt;p&gt;As to the other--middleware placement--it does appear to make a difference. If I include the toolbar just before or right after the session/authentication middleware, the session/authentication queries show up in the tool bar, but not if I put it further down the list.&lt;/p&gt;&lt;p&gt;Again, thanks for this. It has been a great help so far.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe</dc:creator><pubDate>Tue, 10 Feb 2009 15:58:02 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-6145720</link><description>&lt;p&gt;Since middleware gets initialized at project runtime (not at request/response time), the ordering shouldn't matter that much.&lt;/p&gt;&lt;p&gt;One place that differs between the toolbar's way of getting queries and the context processor is if you call the context processor and iterate over its results in a template that continues to do template calls further down the template, you may miss some queries getting called since the context processor gathers up its queries at the time it's called.  Versus the toolbar that gathers up its queries via the process_response hook in the middleware.  But what I'm describing usually leads to more queries appearing in the toolbar, not less.&lt;/p&gt;&lt;p&gt;One area that may trigger extra queries is if the template context contains objects whose __str__ or __unicode__ methods execute queries.  Since the toolbar is attempting to print the objects in the template context, this would trigger extra queries if those methods execute queries.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob Hudson</dc:creator><pubDate>Tue, 10 Feb 2009 15:12:54 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-6145400</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Great piece of software. I just installed it today, and I'm trying to understand a problem. The number of SQL queries I see in the toolbar always appears to be less than the number being reported in the debug context (available in "templates/django.core.context_processors.debug". Two reasons that I can think of: 1) where you introduce the middleware matters---that is if comes after the session and authentication middleware, then the sql requests for those are not included, and 2) the debug panel triggers some queries of some sort? Number one appears to be true for certain; I moved the middleware insertion point around to see the effect, but it doesn't explain ALL of the differences.  Can you clue me in if something else is going on?&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Joe</dc:creator><pubDate>Tue, 10 Feb 2009 14:58:35 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4819901</link><description>&lt;p&gt;Right, the toolbar middleware searches for the closing body tag and inserts its code before it, so the output has to be HTML and has to contain the closing body tag to work.  XML output won't work, for example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rob Hudson</dc:creator><pubDate>Thu, 01 Jan 2009 17:20:30 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4794059</link><description>&lt;p&gt;Found problem -- had to add html tags.&lt;br&gt;I saw it was working fine in django admin but not in my app.&lt;br&gt;After adding &amp;lt;html&amp;gt;&amp;lt;header&amp;gt;&amp;lt;body&amp;gt; tags it was ok,&lt;br&gt;Thanks&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bosveld</dc:creator><pubDate>Wed, 31 Dec 2008 02:49:43 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4780105</link><description>&lt;p&gt;1.  The zip version (on git) didn't contain all the files. &lt;br&gt;2.  Got all installed and have simple django app going but don't see the toolbar??&lt;/p&gt;&lt;p&gt;Using local test server.  &lt;br&gt; INTERNAL_IPS = INTERNAL_IPS = ('127.0.0.1',)&lt;br&gt;&amp;amp; rest of settings as per setup&lt;/p&gt;&lt;p&gt;Any pointers would be appreciated as I am keen to have a look.&lt;/p&gt;&lt;p&gt;Many Thanks&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bosveld</dc:creator><pubDate>Tue, 30 Dec 2008 11:10:29 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4574729</link><description>&lt;p&gt;where's the download link?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dan</dc:creator><pubDate>Mon, 22 Dec 2008 14:16:11 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4388294</link><description>&lt;p&gt;This is a great tool.  I had to hack the the source code a bit to use in our debug server cluster. This allows me to specify a regex for IPs.&lt;/p&gt;&lt;p&gt;&lt;a href="http://settings.py" rel="nofollow noopener" target="_blank" title="settings.py"&gt;settings.py&lt;/a&gt;&lt;br&gt;================================&lt;br&gt;import re&lt;br&gt;DEBUG_IPS = (&lt;br&gt;    re.compile(r'^192.168.1.*'),&lt;br&gt;)&lt;br&gt;================================&lt;/p&gt;&lt;p&gt;Then in the &lt;a href="http://middleware.py" rel="nofollow noopener" target="_blank" title="middleware.py"&gt;middleware.py&lt;/a&gt; I changed the show_toolbar method:&lt;/p&gt;&lt;p&gt;================================&lt;br&gt;    def show_toolbar(self, request):&lt;br&gt;        if not settings.DEBUG:&lt;br&gt;            return False&lt;br&gt;        if request.is_ajax():&lt;br&gt;            return False&lt;br&gt;        for user_agent_regex in settings.DEBUG_IPS:&lt;br&gt;            if &lt;a href="http://user_agent_regex.search" rel="nofollow noopener" target="_blank" title="user_agent_regex.search"&gt;user_agent_regex.search&lt;/a&gt;(request.META['REMOTE_ADDR']):&lt;br&gt;                return True&lt;br&gt;        if not request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS:&lt;br&gt;            return False&lt;br&gt;        return True&lt;br&gt;================================&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt</dc:creator><pubDate>Sat, 13 Dec 2008 13:25:13 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-4226790</link><description>&lt;p&gt;I followed the instructions and daat is "dumped", but not in the nice format shown above.  Viewing the HTML - it looks as though it is trying to access a  __debug__ directory that does not exist on my server. For example:&lt;/p&gt;&lt;p&gt;@import url(/__debug__/m/toolbar.min.css);&lt;/p&gt;&lt;p&gt;and&lt;/p&gt;&lt;p&gt;&amp;lt;script type="text/javascript" src="/__debug__/m/toolbar.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p&gt;If I'm being dense forgive me. Any help would be greatly appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">matt</dc:creator><pubDate>Sat, 06 Dec 2008 15:28:56 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-3026942</link><description>&lt;p&gt;I think it's worth noting that the toolbar will not work with Django installations prior to Django 1.0.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">josh</dc:creator><pubDate>Mon, 13 Oct 2008 14:45:07 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2900157</link><description>&lt;p&gt;For those who might have run into a similar problem, I got this to work by adding an ipv6 localhost address ::1 to INTERNAL_IPS as oppose to just ipv4 addresses&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tinio</dc:creator><pubDate>Mon, 06 Oct 2008 17:41:52 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2838008</link><description>&lt;p&gt;Nice, you could also add a profiling panel :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chyssler</dc:creator><pubDate>Sat, 04 Oct 2008 08:19:07 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2807272</link><description>&lt;p&gt;Hi great work.  Followed the instructions and got it to work using the django dev webserver.  However, does it work if served through an apache/mod_python server?  Couldn't get that part working, and was looking to get pointers from anyone who's had similar problems if it does support that setup.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tinio</dc:creator><pubDate>Thu, 02 Oct 2008 16:18:09 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2804898</link><description>&lt;p&gt;I followed all the instructions for installation but don't seem to be able to get the toolbar to appear, my development server is running on a remote machine and I have its IP  and mine in the  INTERNAL_IPS in &lt;a href="http://settings.py" rel="nofollow noopener" target="_blank" title="settings.py"&gt;settings.py&lt;/a&gt;. I don't have any errors when I run my server, any clues to what I might be missing? &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GPRX</dc:creator><pubDate>Thu, 02 Oct 2008 14:30:38 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2795518</link><description>&lt;p&gt;you are a golden god&lt;/p&gt;&lt;p&gt;thank you so much!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hollerith</dc:creator><pubDate>Thu, 02 Oct 2008 04:41:58 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2784669</link><description>&lt;p&gt;Great work, Rob! This has become one of the essentials for any project I'm working on.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dave Lowe</dc:creator><pubDate>Wed, 01 Oct 2008 14:12:43 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2735297</link><description>&lt;p&gt;great work...&lt;/p&gt;&lt;p&gt;I was hoping to report (what appears to be) a bug.  Let me know if there's anywhere to do that...&lt;/p&gt;&lt;p&gt;odio (dot) sam (a t) gmail (dot) com&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sro</dc:creator><pubDate>Mon, 29 Sep 2008 14:13:29 -0000</pubDate></item><item><title>Re: Introducing the Django Debug Toolbar</title><link>http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/#comment-2729847</link><description>&lt;p&gt;Now it works like a charm, and the green look is much better. &lt;br&gt;this is amazing stuff.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kurczak</dc:creator><pubDate>Mon, 29 Sep 2008 06:51:48 -0000</pubDate></item></channel></rss>