Mercurial > hg > index.fcgi > www > www-1
comparison pics2/pics_test_server.py @ 52:f5c2934a1e3f
add pics2
author | paulo |
---|---|
date | Tue, 14 May 2013 23:36:18 -0700 |
parents | |
children | 0249782e231e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:aa81b2543585 |
---|---|
1 import wsgiref.simple_server | |
2 import SocketServer | |
3 | |
4 import pics_app | |
5 | |
6 | |
7 class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer): | |
8 pass | |
9 | |
10 | |
11 if __name__ == "__main__": | |
12 httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler) | |
13 httpd.set_app(pics_app.app) | |
14 httpd.serve_forever() |