title: DJANGO celery task is executed from shell but it's not executed from view
body: <p>I am trying to create some asynchronous tasks with celery in my django application</p>
  
  <p>settings.py</p>
  
  <pre><code>BROKER_URL = 'django://localhost:6379/0'
  CELERY_ACCEPT_CONTENT = ['json']
  CELERY_TASK_SERIALIZER = 'json'
  CELERY_RESULT_SERIALIZER = 'json'
  </code></pre>
  
  <p>celery.py:</p>
  
  <pre><code>from __future__ import absolute_import
  import os
  from celery import Celery
  from django.conf import settings
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'provcon.settings')
  
  app = Celery('provcon')
  app.config_from_object('django.conf:settings')
  app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
  </code></pre>
  
  <p>project __init__py:</p>
  
  <pre><code>from __future__ import absolute_import
  from .celery import app as celery_app
  </code></pre>
  
  <p>tasks.py:</p>
  
  <pre><code>from __future__ import absolute_import
  from celery import shared_task
  from celery import task
  from .models import Proc_Carga
  @task()
  def carga_ftp():
      tabla = Proc_Carga()
      sp = tabla.carga()
  
      return None
  </code></pre>
  
  <p>I call the asysnchronous tasks from my view like this:</p>
  
  <pre><code>from .tasks import carga_ftp
  
  @login_required(login_url='/login/')
  def archivoview(request):
      usuario= request.user
      if request.method == 'POST':
         form = ProcFTPForm(usuario,request.POST)
         if form.is_valid():
            form.save()
            proc = Lista_Final()
            lista = proc.archivos()
            # call asynchronous task 
            carga_ftp.delay()
            return HttpResponseRedirect('/resumen/')
      else:
        form = ProcFTPForm(usuario)
      return render_to_response('archivo.html',{'form':form},context_instance=RequestContext(request))
  </code></pre>
  
  <p>When I run the task from the python manage.py shell. The worker is executed and create the database objects without any problem</p>
  
  <p>but when I try to execute the task from the view, doesn't work is not executed</p>
  
  <p>Any idea why the task run from the manage.py shell but not from the views</p>
  
  <p>Thanks in advance </p>