python - Celery Error: no module name [django app name] - Have checked the if the celery file is correct but still get issue? -


when run celery -a uno worker -l info in terminal error

file "/usr/lib/python2.7/importlib/__init__.py", line 37, in   import_module __import__(name) importerror: no module named uno 

here celery.py in uno app django settings.py file is.

from __future__ import absolute_import import os  celery import celery django.conf import settings  os.environ.setdefault('django_settings_module', 'uno.settings') app = celery('uno')  # reads, e.g., celery_accept_content = ['json'] settings.py: app.config_from_object('django.conf:settings')  # autodiscover_tasks work, must define tasks in file    called 'tasks.py'. app.autodiscover_tasks(lambda: settings.installed_apps)  @app.task(bind=true)     def debug_task(self):     print("request: {0!r}".format(self.request)) 

i using ubuntu experience same error on mac. install celery via pip in virtualenv

i not sure wrong or missing here. if use same celery file in different project , name works eg app = celery('faketest') . not sure went wrong in app. maybe because change app name afterwards. stumped...

thank much.

i want if have correctly named , still have module not found error (i spent hours trying figure out)... must place command "celery -a proj worker -l info above apps branch

"the celery program can used start worker (you need run worker in directory above proj):" per docs


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -