Django AMQP 错误
我安装了一个 Django 应用程序,它将任务发送到 Celery,并且在我的 settings.py
文件中包含以下内容:
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "user"
BROKER_PASSWORD = "password"
BROKER_VHOST = "host"
BROKER_BACKEND = "amqp"
...
CELERY_ALWAYS_EAGER = False
我运行服务器,一切看起来都很好,直到我真正去运行该任务。我收到以下错误:
Exception Type: KeyError
Exception Value: 'No such transport: amqp'
我已安装 AMQP 库并在我的 site-packages 目录中列出,但我找不到有关此错误的任何信息...?
I have a Django application installed that sends off tasks to Celery, and have the following in my settings.py
file:
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "user"
BROKER_PASSWORD = "password"
BROKER_VHOST = "host"
BROKER_BACKEND = "amqp"
...
CELERY_ALWAYS_EAGER = False
I run the server and everything seems fine until I actually go to run the task. I get the following error:
Exception Type: KeyError
Exception Value: 'No such transport: amqp'
I have the AMQP library installed and is listed in my site-packages directory, but I cannot find anything about this error...?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
海带问题
Celery 错误“没有这样的传输:amqp”
Problem with kombu
Celery Error 'No such transport: amqp'