title: Django context not rendering
body: <p>I've got a Django template in HTML. I would like to pass a variable to this template using a context. However, when I render the template Django fills the spaces that reference this variable with the string specified by the TEMPLATE_STRING_IF_INVALID setting (I tested this). </p>
  
  <p>Here's the relevant URLconf:</p>
  
  <pre><code>from django.conf.urls import patterns, url
  
  from users import views
  
  urlpatterns = patterns('',
      url(r'^$', views.users),
      url(r'(?P&lt;pk&gt;\d+)/$', views.userdetail),
  )
  </code></pre>
  
  <p>and here's the view it references:</p>
  
  <pre><code>from django.template import RequestContext, loader
  ...
  def userdetail(request, pk):
      user = get_object_or_404(User, pk=pk)
      template = loader.get_template('users/userdetail.html')
      context = RequestContext(request, {'user': user})
      return HttpResponse(template.render(context))
  </code></pre>
  
  <p>I'm fairly certain it's due to a syntax error in specifying the context but after looking at it for an hour I can't find one. I'm happy to post additional code if you think it may be relevant. Can anyone spot my mistake?</p>
  
  <p>Template for those interested:</p>
  
  <pre><code>{% if error_message %}&lt;p&gt;&lt;strong&gt;{{ error_message }}&lt;/strong&gt;&lt;/p&gt;{% endif%}
  
  &lt;h1&gt; You are viewing the page for the individual user {{ user.name }} &lt;/h1&gt;
  
      This user has created the following posts:
  
      {% for post in user.post_list %}
          &lt;a href="/posts/{{ post.id }}/"&gt;{{ post.title }}&lt;/a&gt;&lt;/li&gt;
      {% endfor %}
  
  &lt;p&gt;
  Created on {{ user.creation_date }}
  &lt;/p&gt;
  </code></pre>