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)
def development(): # server = BaseRunserverCommand() server = DebugServer() server.handle(use_ipv6=False, addrport="%s:%s" % (ip, port), use_reloader=True, use_threading=True, use_static_handler=True, insecure_serving=True)