title: ImportError: cannot import name 'Celery'
body: <p>I'm trying to learn Celery i'm using Django 2.0 and celery 5.0.2 and my os is Ubuntu.</p>
  <p>This is my structure
  My project structure is:</p>
  <pre><code>celery/
    manage.py
    celery/
      __init__.py
      cerely_app.py
      settings.py
      urls.py
      wsgi.py
    apps/
        main/ 
          __init__.py
          admin.py
          apps.py
          models.py
          task.py
          views.py
          test.py          
  
  </code></pre>
  <p>My configuration for cerely_app, based on documentation:</p>
  <pre><code>import os
  from celery import Celery
  
  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celery.settings')
  
  app = Celery('celery')
  
  app.config_from_object('django.conf:settings', namespace='CELERY')
  
  app.autodiscover_tasks()
  
  
  @app.task(bind=True)
  def debug_task(self):
      print(f'Request: {self.request!r}')
  </code></pre>
  <p>And my <strong>init</strong>.py:</p>
  <pre><code>from .celery_app import app as celery_app
  __all__ = ('celery_app',)
  </code></pre>
  <p>But when django give a error of import when i use command python3 manage.py runserver:</p>
  <pre><code>$python3 manage.py runserver
  Traceback (most recent call last):
    File &quot;manage.py&quot;, line 15, in &lt;module&gt;
      execute_from_command_line(sys.argv)
    File &quot;/home/brayan/Envs/celery/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 371, in execute_from_command_line
      utility.execute()
    File &quot;/home/brayan/Envs/celery/lib/python3.8/site-packages/django/core/management/__init__.py&quot;, line 317, in execute
      settings.INSTALLED_APPS
    File &quot;/home/brayan/Envs/celery/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 56, in __getattr__
      self._setup(name)
    File &quot;/home/brayan/Envs/celery/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 43, in _setup
      self._wrapped = Settings(settings_module)
    File &quot;/home/brayan/Envs/celery/lib/python3.8/site-packages/django/conf/__init__.py&quot;, line 106, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File &quot;/usr/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 961, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 783, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/home/brayan/dev/python/celery/celery/celery/__init__.py&quot;, line 3, in &lt;module&gt;
      from .celery_app import app as celery_app
    File &quot;/home/brayan/dev/python/celery/celery/celery/celery_app.py&quot;, line 2, in &lt;module&gt;
      from celery import Celery
  ImportError: cannot import name 'Celery' from partially initialized module 'celery' (most likely due to a circular import) (/home/brayan/dev/python/celery/celery/celery/__init__.py)
  </code></pre>