Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker启动不了 #147

Closed
February00 opened this issue Jun 11, 2018 · 2 comments
Closed

worker启动不了 #147

February00 opened this issue Jun 11, 2018 · 2 comments

Comments

@February00
Copy link

请问,在利用celery -A proj worker -l info 启动worker时,出现django.core.exceptions.ImproperLyConfigured: Requested settings,but settings are not configured.You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before assessing settings.

我利用settings.configure()进行了尝试,还是没有解决,还是报这个错误。

麻烦问一下,知不知道这是什么原因

@mrgaolei
Copy link

mrgaolei commented Dec 10, 2018

大哥,这个项目是把beat配置从配置文件改到django admin,和worker一点关系没有。

@youngershen
Copy link

是你 django 配置的问题,跟 celery 没有关系,你肯定在你的 celery 任务里调了 django 的东西。

@auvipy auvipy closed this as completed Dec 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants