title: Can I redirect to another url in a django TemplateView?
body: <p>I have a url mapping that looks like this:</p>
  
  <pre><code>url(r'^(?P&lt;lang&gt;[a-z][a-z])/$', MyTemplateView.as_view()),
  </code></pre>
  
  <p>There are only a few values that I accept for the <code>lang</code> capture group, that is: (1) <code>ro</code> and (2) <code>en</code>. If the user types <code>http://server/app/fr/</code>, I want to redirect it to the default <code>http://server/app/en/</code>.</p>
  
  <p>How can I do this since <code>MyTemplateView</code> only has a method that is expected to return a dictionary?</p>
  
  <pre><code>def get_context_data(self, **kwargs):
      return { 'foo': 'blah' }
  </code></pre>