First we need to create project as well as app
Inside the app > we write the management commands.
Inside the Filename.py we write the code. as per the below strutuer.
from django.core.management.base import BaseCommand
help = “Cammand to load data”
def handle(self, *args, **kwargs):
To run this code we need to edit the configurations.