Previous versions of Celery required a separate library to work with
Django, but since 3.1 this is no longer the case. Django is supported
out of the box now so this document only contains a basic way to
integrate Celery and Django. You will use the same API as non-Django
users so it’s recommended that you read the First Steps with Celery
tutorial first and come back to this tutorial. When you have a working
example you can continue to the Next Steps guide.
Django celery是一个为Django提供celery集成的项目,但现在不再需要它了。在
你不必再安装django芹菜了。因为3.1django是开箱即用的。在
因此,要安装芹菜,可以使用pip:
这是来自Celery First Steps with Django Tutorial的注释
使用Django时,应该从PyPI安装
django-celery
。芹菜将作为依赖项安装。在djceleri将您的django项目与celeri挂钩,这是一种用于各种应用程序堆栈的更通用的工具。在
Here是Celery的Django入门指南,它描述了安装Django Celery和设置您的第一个任务。在
相关问题 更多 >
编程相关推荐