title: Passing a python list to django template
body: <p>I want to display a list of things on my template. So I have a view to generate that list and pass it to template like this:</p>
  
  <pre><code>newlinks = []
  try:
      links=urllib2.urlopen("&lt;&lt;Some HTML file link&gt;&gt;").readlines()
  except (urllib2.HTTPError):
      links = ''
      pass
  for link in links:
      newlinks.append(link[0:-1])                       
  return render_to_response('template11.html', {'links',newlinks}, context_instance=RequestContext(request))
  </code></pre>
  
  <p>But while rendering it, i get TypeError</p>
  
  <pre><code>Exception Type: TypeError
  Exception Value: unhashable type: 'list'
  </code></pre>
  
  <p>This is template code:</p>
  
  <pre><code>{% for link in links %}
      &lt;li&gt;{{ link }}&lt;/li&gt;
  {% endfor %}
  </code></pre>
  
  <p>I don't understand this error. Also if this approach is wrong(I think it is), then how would I pass a list to template?</p>