title: Is it possible to prevent a base template reloading using django's template inheritance?
body: <p>In the header region of my base template (main.html), I've placed an HTML5 media player which pulls in content uploaded through my admin interface. </p>
  
  <p>What I'm attempting to do is, when the tracks have been loaded once, have the media player remain unaffected by internal site navigation. In other words, the media player keeps playing but the user can browse the site without interrupting playback/ re-loading the tracks.</p>
  
  <p>It's a fairly simple setup. There's one main template and each of the other sections (say, blog, contact and about) are all content blocks loaded within that same template using:</p>
  
  <pre><code>{% extends 'main.html' %}
  </code></pre>
  
  <p>As I understand it, when the template system evaluates a child template, first it loads the parent then fills in the child blocks as defined. I logically, and perhaps incorrectly, assumed that child block regions would be 'pulled into' the parent. However, having read the django docs on template inheritance, it would appear that what actually happens is some sort of reverse lookup: find parent > load parent > find blocks > populate blocks. As I have it set up at the moment, each time a link is clicked, the media stops playing and is reloaded.</p>
  
  <p>So my question is whether I've missed something fundamental in the way the django's template engine works and it <em>is</em> possible to achieve what I'm after just using the template engine, or whether it's impossible and I need to do it some other way (e.g. via AJAX). It's the first time I've attempted to do anything like this in django so I wouldn't be at all surprised if it's the former.</p>