from django.core.management.base import BaseCommand, CommandError from astrobasis.utils import astrobasis_assign_healpix from astrobasis.models import GLIMPSE class Command(BaseCommand): help = 'Initiates healpix for GLIMPSE' def handle(self, *args, **options): astrobasis_assign_healpix(GLIMPSE) self.stdout.write(self.style.SUCCESS('Done'))