def handle(self, *args, **options): """ This function prepares the options for running the service and if needed delegates the whole procedure to `runserver` """ runserver = Runserver() runserver.stdout = sys.stdout runserver.handle('0.0.0.0:8000', *args, **options)