def get_app(config=None, init_elastic=False):
"""App factory.
:param config: configuration that can override config from `settings.py`
:return: a new SuperdeskEve app instance
"""
config = config or {'APP_ABSPATH': os.path.abspath(os.path.dirname(__file__))}
for key in dir(settings):
if key.isupper():
config.setdefault(key, getattr(settings, key))
return superdesk_app(config)
评论列表
文章目录