Why can't it find my celery config file?
问题 /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. 回答1: Now in Celery 4.1 you can solve that problem by that code(the easiest way): import celeryconfig from celery import Celery app = Celery() app.config_from_object(celeryconfig) For