1. 首页
  2. 数据库
  3. 其它
  4. Django celery异步任务实现代码示例

Django celery异步任务实现代码示例

上传者: 2021-02-23 18:12:17上传 PDF文件 53.57KB 热度 34次
最近项目中用到celery很多,Django快速接入celery,这里给份教程。 准备 pip安装celery、flower、eventlet 快速接入 1.项目目录的__init__文件 from __future__ import absolute_import # This will make sure the app is always imported when # Django starts so that shared_task will use this app. from .celerypro import app as celery_app 2.celerypro.py
下载地址
用户评论