<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 22:33:13 +0000</lastBuildDate>
    <item>
      <title>(Django) Template Query Debug - jonhenshaw</title>
      <link>https://snipplr.com/view/5741/template-query-debug</link>
      <description>&lt;p&gt;I often find something like this lurking at the end of my base templates - it'll show you which queries were run while generating the current page, but they'll start out hidden so as not to be a pain.&#13;
&#13;
Of course, before this works, you'll need to satisfy all the criteria for getting debug information in your template context:&#13;
&#13;
   1. Have 'django.core.context_processors.debug' in your TEMPLATE_CONTEXT_PROCESSORS setting (it was there in the default settings, last time I checked).&#13;
   2. Have your current IP in your INTERNAL_IPS setting.&#13;
   3. Use RequestContext when rendering the current template (if you're using a generic view, you're already using RequestContext).&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 16:20:35 UTC</pubDate>
      <guid>https://snipplr.com/view/5741/template-query-debug</guid>
    </item>
  </channel>
</rss>
