通过djangocrontab扩展来实现 定时任务

pip install django-crontab
image.png

基本格式 :

* * * * *

分 时 日 月 周      命令

M: 分钟(0-59)。每分钟用*或者 */1表示

H:小时(0-23)。(0表示0点)

D:天(1-31)。

m: 月(1-12)。

d: 一星期内的天(0~6,0为星期天)。

原文地址:https://www.cnblogs.com/cizao/p/11481920.html