title: How to get values from the Ajax() into Django template?
body: <p>I have a Django template where it shows multiple values received from the database and passes it to the template, something like following:</p>
  
  <p>in views.py</p>
  
  <pre><code>def test1(requests):
    requests.get...
    requests.get...
    requests.get...
    someQuery = "select id from table;"
    executeQ(someQuery)
    someQuery = "select id from table;"
    executeQ(someQuery)
    someQuery = "select id from table;"
    executeQ(someQuery)
    context = Data1, Data2, Data3
    return render_to_response('test1/index.html', context)
  </code></pre>
  
  <p>in template/test1/index.html</p>
  
  <pre><code>&lt;html&gt;
    ...... 
  
  &lt;table&gt;
  &lt;th&gt; header1 &lt;/th&gt;
  &lt;th&gt; header2 &lt;/th&gt;
  &lt;th&gt; header3 &lt;/th&gt;
  
  {% for row in context %}
   &lt;td&gt; row.1 &lt;/td&gt;   
   &lt;td&gt; row.2 &lt;/td&gt;
   &lt;td&gt; row.3 &lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>Now, what I want is to update those row.1, row.2, row.3 via Ajax without realoding the page everytime. The data come from the database. So where and how can I put in some Ajax() so this happens with Django?</p>