from django.core.management import BaseCommand from idescriptor.bot import post class Command(BaseCommand): help = 'Post an image' def add_arguments(self, parser): # Named (optional) arguments pass def handle(self, *args, **options): print(post())