from django.core.management.base import BaseCommand, CommandError from datetime import date import datetime from django.utils import timezone import astropy from astropy.io import ascii import pandas as pd import pymysql from sqlalchemy import create_engine from django.db.models import Q from heasarc.models import HeasarcBase from artsurvey.models import ArtSurveySource, ArtSurvey from artsurvey.models import EnergyBand from artsurvey.utils import select_turkpossible class Command(BaseCommand): help = 'Initiates data dase' # def add_arguments(self, parser): # parser.add_argument('poll_id', nargs='+', type=int) def handle(self, *args, **options): select_turkpossible(12345.11,'E0') self.stdout.write(self.style.SUCCESS('Done'))