title: How to use the .delay() method in django-celery?
body: <p>I want to use .delay to achieve asynchronous behavior. The main reason for using this is to speed up my view. Am I doing this wrong? If so, how should I do it correctly?</p>
  
  <p>Below is the example code:</p>
  
  <p>View.py</p>
  
  <pre><code>@cache_page(60*60*24)
  def my_view(request):
      something ..... .... ....
      a = SomeModel.objects.get(pk=id)
      data = celery_task.delay(a)
      return dumpjson(status='ok', data=data, callback=callback)
  </code></pre>
  
  <p>Task.py</p>
  
  <pre><code>def celery_task(a):
      res = request.get('http:sample.sample.com/feed/result' params={'abc': 'abc'})
      return {'response': res}
  </code></pre>
  
  <p>If I bring the response from celery_task it displays some guid (1b52f519-64cb-43da-844a-2886bcccb9bc) and the error is something like this:</p>
  
  <pre><code>&lt;EagerResult: 1b52f519-64cb-43da-844a-2886bcccb9bc&gt; is not JSON serializable
  </code></pre>