code: def _get_webapp(self):
          
          settings = {
              "PORT"          : self._port,
              #"static_path"   : app_path(__conf__.STATIC_DIR_NAME),
              #"template_path" : app_path(__conf__.TEMPLATE_DIR_NAME),
              "debug"         : __conf__.DEBUG,
              "cookie_secret" : __conf__.COOKIE_SECRET
          }
  
          self.settings.update(settings)
          return WebApplication(self._handlers, **settings)
docs: 创建 tornado.web.Application