title: ImportError cannot import name celery
body: <p>I am trying to add Celery on top my existing Flask app, I have shared my project file structure below. I do not have <code>__init__.py</code> file in my project.</p>
  
  <p>I have task <strong>run_job</strong> in <code>jobs.py</code> , but fromm app.py I can not import celery object I created. But I am receiving below error. I believe I am getting error because of my project structure and not having init file. Is there way to over come this without using <code>__init__.py</code></p>
  
  <p><strong>ImportError: cannot import name 'celery'</strong></p>
  
  <pre><code>&lt;pre&gt;+ root/  
    - flask-app/  
      * app.py  
      * tasks.py
      * jobs.py
      * jobs_namespace.py&lt;/pre&gt;
  </code></pre>
  
  <p>My app.py looks like:</p>
  
  <pre><code>from flask import Flask
  from tasks import make_celery
  
  APP = Flask(__name__)
  ...
  celery = make_celery(APP) # cannot import in jobs.py 
  </code></pre>
  
  <p>My tasks.py:</p>
  
  <pre><code>from celery import Celery
  def make_celery(app):
  ...
  </code></pre>
  
  <p>My jobs.py</p>
  
  <pre><code>from app import celery
  @celery.task()
  def run_job():
  ...
  </code></pre>
  
  <p>MY jobs_namescape.py:</p>
  
  <pre><code>@api.route("/")
  def home():
     result = jobs.run_job().apply_async(args=None, countdown=60)
  </code></pre>