微信上的定时提醒 - Cron on WeChat
- Clone代码
git clone https://github.com/polyrabbit/WeCron.git
- 安装依赖包
cd WeCron
pip install -r requirements.txt
- 初始化数据库
# 创建数据库
psql -c 'CREATE DATABASE "wecron" WITH OWNER "postgres" TEMPLATE template0 ENCODING="UTF8" CONNECTION LIMIT=-1;'
psql -c 'GRANT ALL PRIVILEGES ON DATABASE "wecron" to "postgres";'
# 建表
python WeCron/manage.py migrate
- 启动本地Server
python WeCron/manage.py runserver
- 文档:WeCron是怎样处理定时任务的
- 感谢@messense贡献的微信公众平台SDK wechatpy!