old_contents: # Create your views here.
  
  from tasks import add
  from django.http import HttpResponse
  
  
  def foo(request):
      r = add.delay(2, 2)
      return HttpResponse(r.task_id)
  
new_contents: # Create your views here.
  
  from demoapp import tasks
  from django.http import HttpResponse
  
  
  def foo(request):
      r = tasks.add.delay(2, 2)
      return HttpResponse(r.task_id)
  
subject: Use from demoapp import tasks instead