我在django中设置了一个管理命令:
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
""" Command to parse logs that can be called from django """
def handle(self, *args, **options):
parse_logs()
我可以使用call_command从shell或python调用。当我从