title: Refresh <div> element generated by a django template
body: <p>How do I refresh a certain  element within a django template?<br>
  Example:</p>
  
  <pre><code>{% if object.some_m2m_field.all %}
      &lt;h3&gt;The stuff I want to refresh is below&lt;/h3&gt;
      &lt;div id="the-div-that-should-be-refreshed"&gt;
      {% for other_object in object.some_m2m_field.all %}
          &lt;a href="www.example.com"&gt;{{ other_object.title }}&lt;/a&gt;
          &amp;nbsp;
      {% endfor %}
      &lt;/div&gt;
  {% endif %}
  </code></pre>
  
  <p>Lets say some other element in the page triggers a javascript that should refresh the div above. Is there a way to cause django to refresh this specific element within the template?</p>
  
  <p>If not, I'll have to monkey-patch the div using regular JS or jQuery methods and not use the great power of django's template layer. Also, the above code is a simplification of the actual template, I use much of the template's power, so monkey-patching the resulting html will be a nightmare...</p>