title: Calling python "DIR" function from django template, or php print_r equivalent?
body: <p>Does anyone know of an existing library for inspecting elements in the template?</p>
  
  <p>Currently I usually end up doing this in the view:</p>
  
  <pre><code>show_me = dir(the_deets_on_this_object)
  raise ValueError()
  </code></pre>
  
  <p>Then I can inspect the value of show_me in the debugger stack trace.  </p>
  
  <p>However, this is really ugly.  I'd love to be able to do this inspection in the template, like is done in php with the print_r</p>
  
  <pre><code>{% load development_show_me %}
  {{the_deets_on_this_object|show_them_to_me}}
  </code></pre>
  
  <p>I know that this doesn't exist in the django standard template library, but I'm hoping someone has already written this template filter so I can just happily use it.  </p>
  
  <p>Bonus behaviors:</p>
  
  <ul>
  <li>Checks for settings.DEBUG and raises an error that isn't trapped if it is false</li>
  <li>wraps the output in &lt; pre ></li>
  </ul>
  
  <p>I'll write it if I have to, but hopefully someone else has already done this.</p>