title: django 'Manager' object is not iterable (but the code works in the manage.py shell)
body: <p>I'm new to django and created an application not much different from the polls website described in the tutorial.
  In the website I get:</p>
  
  <pre><code>Exception Type: TemplateSyntaxError
  Exception Value:    
  Caught TypeError while rendering: 'Manager' object is not iterable
  Exception Location: /usr/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line 190
  </code></pre>
  
  <p>pointing to the template marking the error lin line 4 (Caught TypeError while rendering: 'Manager' object is not iterable):</p>
  
  <pre><code>test
  2   {% if clips %}
  3       &lt;ul&gt;
  4       {% for aclip in clips %}
  5           &lt;li&gt;&lt;a href="/annotate/{{ aclip.id }}/"&gt;{{ aclip.name }}&lt;/a&gt;&lt;/li&gt;
  6       {% endfor %}
  7       &lt;/ul&gt;
  8   {% else %}
  9       &lt;p&gt;No clips are available.&lt;/p&gt;
  10  {% endif %}
  </code></pre>
  
  <p>Here is the clip object:</p>
  
  <pre><code>class Clip(models.Model):
      def __unicode__(self):
          return self.name
      name = models.CharField(max_length=30)
      url = models.CharField(max_length=200)
  </code></pre>
  
  <p>And the view code:</p>
  
  <pre><code>def index(request):
      #return HttpResponse("You're looking at clips.")
      mylist = []
      latest_clip_list = Clip.objects.all()#.values_list("name","id")#.order_by('-pub_date')[:5]
      print latest_clip_list
      return render_to_response('annotateVideos/index2.html', {'clips': latest_clip_list})
  </code></pre>
  
  <p>When I run this code from the manage,py shell there is no exception:</p>
  
  <pre><code>In [2]: from annotateVideos import views
  
  In [3]: f = views.index("")
  [{'id': 6L, 'name': u'segment 6000'}]
  
  In [4]: f.content
  Out[4]: 'test\n\n    &lt;ul&gt;\n    \n        &lt;li&gt;&lt;a href="/annotate//"&gt;&lt;/a&gt;&lt;/li&gt;\n    \n        &lt;/ul&gt;\n'
  </code></pre>
  
  <p>Any ideas?
  I find it hard to debug as the code seems to be working on the shell but not on the web server.</p>
  
  <p>Thanks,
  Raphael</p>