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()