Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (18 loc) · 683 Bytes

README-CN.md

File metadata and controls

33 lines (18 loc) · 683 Bytes

Celery demo with Django

English

一个Django和Celery集成的简单示例,如下图所示。

Run

需要先在本地6379端口启动Redis实例。

$ git clone https://github.com/counter2015/celeryDemo.git

# 初始化python虚拟环境,下载依赖包
$ bin/venv_init.sh

# 创建运行时需要的文件夹,初始化数据库(这里用的是SQLite)
$ bin/deploy.sh

# 启动服务,将运行在 http://localhost:8011
$ bin/run.sh

# 你可以通过以下命令关闭服务
$ bin/stop.sh

相关博客介绍可以参见此处