在 application 中该如何配置
class Application(Flask): def __init__(self, import_name, template_folder=None, root_path=None): super(Application, self).__init__(import_name=import_name, template_folder=template_folder, root_path=root_path, static_folder=None) self.config.from_pyfile('config/base_setting.py') # export ops_config=local # python manager.py runserver if 'ops_config' in os.environ: self.config.from_pyfile('config/%s_setting.py' % os.environ['ops_config']) db.init_app(self)