在一个项目中,一个家伙(现在旅行)用内容创建了cron.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core import management
def hourly():
management.call_command(
'transactions',
check_completed=True,
verbosity=0,
interactive=False)
def deposits():
management.call_command(
'transactions',
deposits=True,
push=True,
verbosity=0,
interactive=False)
def debit():
management.call_command(
'transactions',
debits=True,
push=True,
verbosity=0,
interactive=False)
谁能告诉我什么是hourly()
、deposits()
和debit()
?我们怎么能用它来做cron的工作呢?他似乎把它用于cron jobs,但我不清楚。你知道吗
谢谢!你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐