def __init__(self, debug, core, host, port, app_root):
self.core = core
self.flask = Flask("PyPush.web",
static_folder=os.path.join(const.PUSH_WEB_DIR, "static"),
template_folder=os.path.join(const.PUSH_WEB_DIR, "templates"),
)
self.bower = Bower(self.flask)
self.restful = Api(self.flask)
self._applyDefaultConfig()
self.host = host
self.port = port
self.debug = debug
self.flask.config.update(
APPLICATION_ROOT=app_root,
)
评论列表
文章目录