django stream json data that is created by request
<p>how can we stream data in django i saw many tutorials but still can figure it out, 
i requested a data inside view.py and send it through the context to template.html, but i want to update the data once it got changed so i need to keep sending request but how can i create that type of connection? 
basically some thing like this:</p>

<pre><code>webserver ---------&gt; Wsgi -----------&gt; urls.py 
      |                              |
      |                              |
      |     keep sending data        |        keep requesting data
templat.html&lt;--------------------- views.py -------------------------&gt; request
</code></pre>

<p>i dont now if we need to use sockets or how to approach this problem.</p>

<p>The most common use case of what you want to do is endless pagination, when you have lots of data and you do not want to retrieve them in one request. Instead, you request data multiple times and update your front end. 
Try to use django-el-pagination django package, it can help you with your problem. <a href="https://github.com/shtalinberg/django-el-pagination" rel="nofollow">django-el-pagination</a> on GitHub.</p>

python json django sockets request