title: Polling celery task and return on display
body: <p>I am new to celery. I was following <a href="https://github.com/mikeumus/django-celery-example" rel="nofollow noreferrer">this example</a>.</p>
  
  <p><strong>Views.py</strong></p>
  
  <pre><code>def results(request):
      documents = Document.objects.all()
      if request.method == 'POST':
          form = DocumentForm(request.POST, request.FILES)
          if form.is_valid():
              data = form.cleaned_data['name']
              print 'data', data
              newdoc = Document(docfile=request.FILES['docfile'])
              newdoc.save()
          #send it to celery  
      documents = Document.objects.all()
      return render_to_response(
          'results.html',
          {'documents' : documents}, context_instance=RequestContext(request))
  </code></pre>
  
  <p>The user would upload a file which would be processed by an engine. In the meantime, i would want the results page to show all jobs that are already completed. I thought of using celery and modifying the tasks.py to process the files. After its completed, the file will be shown as a url for users to download it. </p>
  
  <p>I cannot think of a way to poll this tasks asynchronously to achieve this part. 
  thanks. </p>