from wsgiref.simple_server import make_server
from . import WSGIApplication


def run_server(settings):
    application = WSGIApplication(settings)
    httpd = make_server('', 8000, application)
    print("Serving on port 8000...")
    httpd.serve_forever()

@@ -1,12 +1,101 @@
+%0A%0Adef run_server(settings):%0A    '''Run application using wsgiref test server%0A    '''%0A    
 from wsgiref
@@ -128,16 +128,20 @@
 _server%0A
+    
 from . i
@@ -166,36 +166,8 @@
 ion%0A
-%0A%0Adef run_server(settings):%0A
     
@@ -316,8 +316,400 @@
 rever()%0A
+%0A%0Adef run_tornado(settings):%0A    '''Run application using Tornade Web framework WSGI server%0A    '''%0A    from tornado import ioloop, httpserver, wsgi%0A    from . import WSGIApplication%0A    application = WSGIApplication(settings)%0A    container = wsgi.WSGIContainer(application)%0A    http_server = httpserver.HTTPServer(container)%0A    http_server.listen(8000)%0A    ioloop.IOLoop.instance().start()%0A

Add base tornado server support