title: Django Celery Error
body: <p>I'm been trying to schedule a task for celery to do at the background but I keep encountering issues.</p>
  
  <p><strong>Quick reference on what I've done so far</strong></p>
  
  <p>I installed <code>celery</code> and <code>django-celery</code> via <code>easy_install</code>, added to <code>INSTALLED_APPS</code>:</p>
  
  <pre><code>'djcelery',
  'kombu.transport.django',
  </code></pre>
  
  <p>imported the following and ran syncdb:</p>
  
  <pre><code> import djcelery
   djcelery.setup_loader()
   BROKER_URL = "django://"
  </code></pre>
  
  <hr>
  
  <p>The task I'm trying to run in the background is password reset. So when a user forget his password , I want to make the sending email task run in the background so what I done is
  I moved my forgot_password function from <code>views.py</code> into <code>tasks.py</code> so it can run.</p>
  
  <p>My <code>tasks.py</code>:</p>
  
  <pre><code> from django.contrib.auth.views import password_reset
   from django.shortcuts import render
   from celery.decorators import task
  
   @task()
   def forgot_password(request):
       if request.method == 'POST':
           return password_reset(request,
               from_email=request.POST.get('email'))
       else:
           return render(request, 'forgot_password.html')
  </code></pre>
  
  <p>Their nothing in <code>views.py</code> now.</p>
  
  <p>The problem is even though, I can send email if I lose my password. I'm not sure if it's running in the background. What I did to check is was:</p>
  
  <pre><code> manage.py celery worker --loglevel=info
  </code></pre>
  
  <p>but I get an error: <code>KeyError: 'processName'</code>:</p>
  
  <pre><code> C:\o\17\mysite&gt;manage.py celery worker --loglevel=info
  
    -------------- celery@gg-PC v3.0.19 (Chiastic Slide)
   ---- **** -----
   --- * ***  * -- Windows-Vista-6.0.6001-SP1
   -- * - **** ---
   - ** ---------- [config]
   - ** ---------- .&gt; broker:      django://localhost//
   - ** ---------- .&gt; app:         default:0x319c930 (djcelery.loaders.DjangoLoader
   )
   - ** ---------- .&gt; concurrency: 2 (processes)
   - *** --- * --- .&gt; events:      OFF (enable -E to monitor this worker)
   -- ******* ----
   --- ***** ----- [queues]
    -------------- .&gt; celery:      exchange:celery(direct) binding:celery
  
  
   [Tasks]
     . accounts.tasks.forgot_password
  
   [2013-05-15 17:49:45,279: WARNING/MainProcess] C:\Python26\lib\site-packages\dja
   ngo_celery-3.0.17-py2.6.egg\djcelery\loaders.py:133: UserWarning: Using settings
   .DEBUG leads to a memory leak, never use this setting in production environments
   !
     warnings.warn('Using settings.DEBUG leads to a memory leak, never '
   [2013-05-15 17:49:45,292: WARNING/MainProcess] celery@gg-PC ready.
   [2013-05-15 17:49:45,292: INFO/MainProcess] consumer: Connected to django://loca
   lhost//.
   Traceback (most recent call last):
     File "C:\Python26\lib\logging\__init__.py", line 754, in emit
       msg = self.format(record)
     File "C:\Python26\lib\logging\__init__.py", line 637, in format
       return fmt.format(record)
     File "C:\Python26\lib\logging\__init__.py", line 428, in format
       s = self._fmt % record.__dict__
   KeyError: 'processName'
   Traceback (most recent call last):
     File "C:\Python26\lib\logging\__init__.py", line 754, in emit
       msg = self.format(record)
     File "C:\Python26\lib\logging\__init__.py", line 637, in format
       return fmt.format(record)
     File "C:\Python26\lib\logging\__init__.py", line 428, in format
       s = self._fmt % record.__dict__
   KeyError: 'processName'
  </code></pre>
  
  <p>Can someone please kindly help me by tell me if forget password is configured probably to send emails in the background and why do I get this error <code>KeyError: 'processName'</code>?</p>