title: Module has no attribute "celery" when using Django 1.7.1, Python 3.4 and Celery 3.1
body: <p>My project is using Python 3.4, Django 1.7.1, Celery 3.1. I have RabbitMQ running as expected.</p>
  
  <p>The project structure is the out-of-the-box standard:</p>
  
  <pre><code>my_project/
      my_project/
          settings.py
          celery.py
          ...
  </code></pre>
  
  <p>I know there are a couple of duplicate questions, but they're not resolving the issue for me. My celery.py file is as follows:</p>
  
  <pre><code>from __future__ import absolute_import
  
  import os
  import django
  
  from celery import Celery
  from django.conf import settings
  
  
  # set the default Django settings module for the 'celery' program.
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_project.settings')
  django.setup()
  
  app = Celery('my_project')
  app.config_from_object('django.conf:settings')
  app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
  </code></pre>
  
  <p>Settings:</p>
  
  <pre><code>BROKER_URL = 'amqp://guest:guest@localhost:5672//'
  </code></pre>
  
  <p>When I try to run:</p>
  
  <pre><code>$ celery -A my_project worker -l debug
  </code></pre>
  
  <p>I get the celery attribute error.</p>
  
  <p>Full traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/celery", line 9, in &lt;module&gt;
      load_entry_point('celery==3.1.17', 'console_scripts', 'celery')()
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/__main__.py", line 30, in main
      main()
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/bin/celery.py", line 81, in main
      cmd.execute_from_commandline(argv)
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/bin/celery.py", line 769, in execute_from_commandline
      super(CeleryCommand, self).execute_from_commandline(argv)))
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/bin/base.py", line 305, in execute_from_commandline
      argv = self.setup_app_from_commandline(argv)
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/bin/base.py", line 465, in setup_app_from_commandline
      self.app = self.find_app(app)
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/bin/base.py", line 485, in find_app
      return find_app(app, symbol_by_name=self.symbol_by_name)
    File "/usr/local/lib/python3.4/dist-packages/celery-3.1.17-py3.4.egg/celery/app/utils.py", line 240, in find_app
      found = sym.celery
  AttributeError: 'module' object has no attribute 'celery'
  </code></pre>
  
  <p>What am I doing wrong?</p>