title: Django psycopg2 template return
body: <p>i am searching some words in remote database with python psycopg2 module and than append them in list then taking it django template .. i have problem with how can i get third and eight object from list</p>
  
  <p>my view.py:</p>
  
  <pre><code>result=[]
  ....
  rows = cur.fetchall()
  for row in rows:
     result.append(row)
  
  return render_to_response("search/se.html",{"data":"res":result}})
  </code></pre>
  
  <p>in my se.html</p>
  
  <pre><code>{% for ress in data.res %}
        {{ ress }}
  {% endfor %}
  </code></pre>
  
  <p>here, i get all searched column of row from my database , but i want as django filter queryset result</p>
  
  <pre><code>{{ ress.id }}
  {{ ress.name }}
  </code></pre>
  
  <p>thnks </p>