from django.core.management.base import BaseCommand from engagements.utils import populate_database class Command(BaseCommand): help = "python manage.py create_engagement_data" # def add_arguments(self, parser): # parser.add_argument("year", nargs="+", type=int) def handle(self, *args, **options): populate_database() self.stdout.write(self.style.SUCCESS("Created engagement objects."))