Mercurial > hg > index.fcgi > www > www-1
annotate index_test_server.py @ 51:bf8c59873212
add theverge.com, update thebrowser.com in myrss/FEEDS
author | paulo |
---|---|
date | Sat, 30 Mar 2013 01:42:33 -0600 |
parents | |
children | 0fbe37b56e84 |
rev | line source |
---|---|
paulo@48 | 1 import wsgiref.simple_server |
paulo@48 | 2 import SocketServer |
paulo@48 | 3 |
paulo@48 | 4 import index_app |
paulo@48 | 5 |
paulo@48 | 6 |
paulo@48 | 7 class ThreadingWSGIServer(SocketServer.ThreadingMixIn, wsgiref.simple_server.WSGIServer): |
paulo@48 | 8 pass |
paulo@48 | 9 |
paulo@48 | 10 |
paulo@48 | 11 if __name__ == "__main__": |
paulo@48 | 12 httpd = ThreadingWSGIServer(('', 8000), wsgiref.simple_server.WSGIRequestHandler) |
paulo@48 | 13 httpd.set_app(index_app.app) |
paulo@48 | 14 httpd.serve_forever() |