/home/myuser/mysite-env/lib/python2.6/site-packages/celery/loaders/default.py:53: NotConfigured: No celeryconfig.py module found! Please make sure it exists and is available to Python.
NotConfigured)
I even defined it in my /etc/profile and also in my virtual environment's "activate". But it's not reading it.
I had a similar problem with my tasks module. A simple
in my package's
__init__.py
solved this problem.you can work around this with the environment... or, use --config: it requires
The error message could probably use these two facts.
Now in Celery 4.1 you can solve that problem by that code(the easiest way):
For Example small celeryconfig.py :
Also very simple way:
Or Using a configuration class/object:
Or how was mentioned by setting CELERY_CONFIG_MODULE
Also see:
Make sure you have celeryconfig.py in the same location you are running 'celeryd' or otherwise make sure its is available on the Python path.