title: Django: Template Doesn't Display Views Field
body: <p>I'm having a problem with a template not displaying model fields sent from a view. </p>
  
  <ul>
  <li><p>The url.py correctly directs to the right html template. </p></li>
  <li><p>The view debug correctly prints the field contents (title and body) to the terminal, but the template is blank. </p></li>
  <li><p>The base.html works, displaying the bootstrap header and container.
  The page source is blank.</p></li>
  <li><p>If I replace the for...loop with <code>&lt;h1&gt;Hi&lt;/h1&gt;</code> the text prints.</p></li>
  </ul>
  
  <p>Here are the files:</p>
  
  <pre><code>    from django.conf.urls import url
  
      from . import views
  
      urlpatterns = [
      url(r'^$', views.index, name='index'),
      url(r'^news/(?P&lt;pk&gt;[0-9]+)/$', views.detail, name='detail'),
      ]
  </code></pre>
  
  <hr>
  
  <pre><code>def detail(request, pk):
  story = Article.objects.get(pk=pk)
  print(story)
  print(story.body)
  print(request)
  context = {'story': story}
  return render(request, 'articles/detail.html', context)
  </code></pre>
  
  <hr>
  
  <pre><code>{% extends "base.html" %}
  
  {% block content %}
  &lt;div&gt;
       {% for story in stories %}
          &lt;h1&gt;{{ story.title }}&lt;/h1&gt;
       {% endfor %}
  &lt;/div&gt;
  {% endblock %}
  </code></pre>