Winand

Untitled

Feb 11th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. from SocketServer import ThreadingMixIn
  2. from wsgiref.simple_server import WSGIServer, make_server
  3. class ThreadedWSGIServer(ThreadingMixIn, WSGIServer): pass
  4.  
  5. if __name__ == '__main__':
  6.     print "server is runnin'", check_conn()
  7.     httpd = make_server('127.0.0.1', 8080, application, ThreadedWSGIServer)
  8.     httpd.serve_forever()
Advertisement
Add Comment
Please, Sign In to add comment