You have two options to fix this error.
Add all the files of the
../web/
directory. Tornado does not handle single files.application = tornado.web.Application([(r"/(.*)", \ tornado.web.StaticFileHandler, \ {"path":r"../web/"}),])
You can render the HTML passing a file as input. You need to create a handler for each HTML file.
import tornado.web import tornado.httpserver class Application(tornado.web.Application): def __init__(self): handlers = [ (r"/upload.html", MainHandler) ] settings = { "template_path": "../web/", } tornado.web.Application.__init__(self, handlers, **settings) class MainHandler(tornado.web.RequestHandler): def get(self): self.render("upload.html") def main(): applicaton = Application() http_server = tornado.httpserver.HTTPServer(applicaton) http_server.listen(8888) tornado.ioloop.IOLoop.instance().start() if __name__ == "__main__": main()