title: django context to built-in pages
body: <p>I have a template that looks something like:</p>
  
  <p>Main Template, home.html:</p>
  
  <pre><code>{% extends "framed.html" %}
  &lt;h2&gt; stuff &lt;h2&gt;
  </code></pre>
  
  <p>framed.html looks something like</p>
  
  <pre><code>{% block header %}
  &lt;h1&gt;{{ sitename }}&lt;/h1&gt;
  {% endblock %}
  </code></pre>
  
  <p>Normally when I call these views I give it a context with a context containing a key "sitename" assigned get_current_site().name, which works fine. </p>
  
  <p>I also, however, would like to use framed.html at the top of a bunch of templates that are also called by django default views. For example:</p>
  
  <pre><code> return HttpResponseRedirect(reverse('django.contrib.auth.views.login'))
  </code></pre>
  
  <p>The top of that page never gets the {{sitename}} to show up, so I end up with some blank space at the top of my page. The same goes for flat pages, logouts, etc. Is there a way I can get the relevant context added to all of these "built-in" pages?</p>