Subversion Repositories navi

Compare Revisions

Ignore whitespace Rev 131 → Rev 132

/webapp/main.py
57,6 → 57,10
out = parse.parsesent(word)
self.render("templates/parse.html", last=word, out=out)
 
settings = {
"static_path": os.path.join(os.path.dirname(__file__), "static")
}
 
application = tornado.web.Application([
("/", Index),
("/number", Number),
63,7 → 67,7
("/restart", Restart),
("/testdb", TestDB),
("/parse", Parse)
], static_path = "static")
], **settings)
 
if __name__ == "__main__":
http_server = tornado.httpserver.HTTPServer(application)