ZhangZhihui's Blog  
import os
from dotenv import load_dotenv

load_dotenv(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '.flaskenv'))
FLASK_ENV = os.getenv('FLASK_ENV')
posted on 2020-04-29 20:47  ZhangZhihuiAAA  阅读(249)  评论(0编辑  收藏  举报