]> git.ipfire.org Git - people/ms/webapp.git/blob - webapp.py
template: Created base layout and substitute only required areas.
[people/ms/webapp.git] / webapp.py
1 #!/usr/bin/python
2
3 import application
4
5 import tornado.httpserver
6 import tornado.ioloop
7 import tornado.options
8
9 app = application.Application()
10
11 if __name__ == "__main__":
12 tornado.options.enable_pretty_logging()
13 http_server = tornado.httpserver.HTTPServer(app)
14 http_server.listen(8080)
15 tornado.ioloop.IOLoop.instance().start()