title: Return the progress to the template each value change in Django
body: <p>I want to show the progress of the task going in the back-end in order let the user know that the work is still in progress.</p>
  
  <p>I have ajax call to a function to get the final value. In back end it will take lot of time to complete the job, but each time i have the progress of the job in one variable i want to show the values of this variable in the front end.</p>
  
  <p>For example my ajax function is</p>
  
  <pre><code>def ajax_call(request):
      j = 0
      for i in range(1,10000):
          j += i
      res = {'data': j}
      return JsonResponse(res, safe=False)
  </code></pre>
  
  <p>As we know it will return the final value of j.  But i want to show the value of j in the front end in each change. Is there any simple way to do this using celery or something</p>