expephalon/core/management/commands/setupcron.py

9 lines
235 B
Python
Raw Normal View History

from django.core.management.base import BaseCommand, CommandError
from core.helpers.cron import setup_cron
class Command(BaseCommand):
help = 'Enables the cron system'
def handle(self, *args, **options):
setup_cron()