Django,如何在特定时间触发功能?

时间:2020-02-12 01:32:35

标签: django

我有一个Django模型,其中有一个published_at字段。我想每天在public_at之后每24小时执行一次函数。所以如果

publish_at = '5 Feb 2020 12AM'

At 6 Feb 2020 12AM , a set of methods will be implemented
At 7 Feb 2020 12AM , a set of methods will be implemented

for x days

0 个答案:

没有答案