title: The SECRET_KEY setting must not be empty on Celery worker run
body: <p><em>Django version 1.9.7.</em></p>
  
  <p>My current project structure is:</p>
  
  <pre><code>vehicles/
  ├── etl
  │   ├── etl
  │   ├── manage.py
  │   ├── pipeline
  │   └── bku
  └── web
      ├── db.sqlite3
      ├── manage.py
      ├── profiles
      ├── projects
      ├── reverse
      ├── static
      ├── templates
      ├── bku
      │   ├── admin.py
      │   ├── admin.pyc
      │   ├── apps.py
      │   ├── migrations
      │   ├── models.py
      │   ├── static
      │   ├── templates
      │   ├── tests.py
      │   ├── urls.py
      │   ├── views.py
      │   └── views.pyc
      └── rocket
          ├── celery.py
          ├── __init__.py
          ├── settings
          │   ├── base.py
          │   ├── dev.py
          │   ├── __init__.py
          │   ├── local.py
          │   ├── production.py
          │   ├── test.py
          ├── urls.py
          ├── wsgi.py
  </code></pre>
  
  <p>Now I want to use <a href="http://www.celeryproject.org/" rel="noreferrer">Celery</a> in the <code>bku</code> Django app. But when I run the worker <code>celery -A rocket worker -l info</code> I get the following error <code>django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.</code>. I have the <code>SECRET_KEY</code> defined and I didn't have this error before trying Celery.</p>
  
  <p>How can I run the worker?</p>
  
  <p><em>rocket/celery.py</em></p>
  
  <pre><code>from __future__ import absolute_import, unicode_literals
  import os
  from celery import Celery
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rocket.settings')
  app = Celery('rocket')
  app.config_from_object('django.conf:settings', namespace='CELERY')
  app.autodiscover_tasks()
  
  @app.task(bind=True)
  def debug_task(self):
      print('Request: {0!r}'.format(self.request))
  </code></pre>
  
  <p><em>rocket/<strong>init</strong>.py</em></p>
  
  <pre><code>from __future__ import absolute_import, unicode_literals
  from .celery import app as celery_app
  
  __all__ = ['bku']
  </code></pre>