title: Python / Django - If statement in template around extends
body: <p>I would like to have a template that extends another conditionally.  Basically, when a variable called "ajax" is true I DO NOT want to have the template extend another.</p>
  
  <pre><code>{% if not ajax %}
      {% extends "/base.html" %}
  {% endif %}
  </code></pre>
  
  <p>Any clues?</p>