flask应用中取得config的配置

from flask import current_app

config = current_app.config
SITE_DOMAIN = config.get('SITE_DOMAIN')

 

posted @ 2016-07-27 13:54  巫谢  阅读(1852)  评论(0编辑  收藏  举报