flask应用中取得config的配置

from flask import current_app

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

 

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