老姜果芹菜一体化项目。

django-celer的Python项目详细描述


寻找Django 1.11到2.2支持的赞助商https://github.com/celery/django-celery/issues/568

django芹菜-django芹菜集成

https://user-images.githubusercontent.com/26336/59113881-917c5180-890b-11e9-9863-f5a98d0e235e.png
Version:3.3.1
Web:http://celeryproject.org/
Download:http://pypi.python.org/pypi/django-celery/
Source:http://github.com/celery/django-celery/
Keywords:celery, task queue, job queue, asynchronous, rabbitmq, amqp, redis, python, django, webhooks, queue, distributed

警告

仅当要使用django result backend时才需要此项目 和管理集成

请按照新教程进行操作:

http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

django芹菜为django提供芹菜集成;使用django orm 和缓存后端以存储结果,自动发现任务模块 对于INSTALLED_APPS等中列出的应用程序。

使用django芹菜

要为项目启用django-celery,您需要将djcelery添加到 INSTALLED_APPS

INSTALLED_APPS += ("djcelery", )

然后将以下行添加到您的settings.py

import djcelery
djcelery.setup_loader()

除了你之外,一切都和Celery User Manual中描述的一样 需要通过manage.py

调用程序
ProgramReplace with
^{tt7}$^{tt8}$
^{tt9}$^{tt10}$
^{tt11}$^{tt12}$
^{tt13}$^{tt14}$

另一个主要区别是配置值存储在 Django项目“settings.py模块而不是 celeryconfig.py

如果你是第一次尝试芹菜,你应该从阅读开始 Getting started with django-celery

mod_wsgi用户的特别注意事项

如果使用mod_wsgi来部署django应用程序,则需要 在.wsgi模块中包括以下内容:

import djcelery
djcelery.setup_loader()

文件

Celery User Manual包含用户指南、教程和api 参考资料。它还有一个专用的subsection about the Django integration

安装

您可以通过python包索引(pypi)安装django-celery。 或者来源。

使用pip,:

安装
$ pip install django-celery

使用easy_install,:

安装
$ easy_install django-celery

然后您需要创建必要的表。如果你产生 架构迁移,您需要运行:

$ python manage.py migrate djcelery

从源代码下载和安装

从下载最新版本的django-celeryhttp://pypi.python.org/pypi/django-celery/

您可以通过执行以下操作安装它:

$ tar xvfz django-celery-0.0.0.tar.gz
$ cd django-celery-0.0.0
# python setup.py install # as root

使用开发版本

您可以通过执行以下操作克隆git存储库:

$ git clone git://github.com/celery/django-celery.git

获得帮助

邮件列表

关于芹菜的用途、发展和未来的讨论, 请加入celery-users邮件列表。

irc

来和我们在IRC上聊天。芹菜通道位于Freenode 网络。

缺陷跟踪器

如果您有任何建议、错误报告或烦恼,请报告 我们的问题跟踪者在http://github.com/celery/django-celery/issues/

贡献

开发django-celery发生在github: http://github.com/celery/django-celery

我们非常鼓励您参与开发。 如果你不喜欢github(出于某种原因),不客气 发送常规补丁。

许可证

此软件是根据New BSD License授权的。请参阅LICENSE 文件位于顶级分发目录中,以获取完整的许可证文本。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
地理定位如何从Java获取运行机器区域   java在方法中使用regex输出   java jps无法连接到远程jstatd   java对象在jframe代码内部创建和访问不起作用   java递增线程名   java Woodstox通过SimpleXML属性限制如何设置它们?   java Android数据库实用程序库   java JComboBox显示不可见下拉菜单   java EditText可输入3个字母和4个数字,动态更改输入类型   spring使用文件中的参数访问属性。Java类中的属性   swing Java nimbus外观和感觉视图总是不同的   java例外。马绍尔群岛共和国。ServerException:服务器线程中发生RemoteException(ClassNotFoundException)   java视图在布局中的位置   java可以快速从内存中卸载位图   java如何将其转换为一个简单的程序,以接收5个数字并说出最小值和最大值?   java强制Hibernate在DB2中转义百分号和下划线符号   java是ActivityThread中使用的最后一个关键字   通过Ref传递Java。整数未修改,集合已修改,为什么?