evanhitchen
Django Cron Job
from django.core.management.base import BaseCommand
import logging
logger = logging.getLogger(name)
class Command(BaseCommand):
help = "Test on railway"
def handle(self, *args, **kwargs):
self.stdout.write('test std out')
logger.warning('warning test')
logger.error('error test')
I took it back to basics as I was fed up
17 replies