最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

authentication - decouple.UndefinedValueError: APP_SETTINGS not found. Declare it as envvar or define a default value - Stack Ov

programmeradmin3浏览0评论

I am very new to Flask and trying to configure python-decouple to use .env variables. I am getting decouple.UndefinedValueError: APP_SETTINGS not found. Declare it as envvar or define a default value. when trying to run the server(macOS). The .env file is located in the root directory. Here is my code:

export SECRET_KEY=fdkjshfhjsdfdskfdsfdcbsjdkfdsdf
export DEBUG=True
export APP_SETTINGS=config.DevelopmentConfig
export DATABASE_URL=sqlite:///db.sqlite
export FLASK_APP=src
export FLASK_DEBUG=1

Give me suggest solution please ,

发布评论

评论列表(0)

  1. 暂无评论