unknown command error ScheduleTask running BaseCommand

from blog.models import Badge from import BaseCommand, CommandError

class Command(BaseCommand): help = 'Command to delete tracking'

def add_argument(self, parser): pass

def handle(self, args, *options): try: badge = Badge.objects.get(Key=2)

  users = badge.completed_by.all()

  for user in users:

except Exception as e:

Schedule task code: cd /home/pakistanblogging/pakistanblogger/PakLancing/ && workon mysite-virtualenv && python dailybadgeupdate

I fixed it, thank you

Glad you got that working!