Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load environment variable from .env file #727

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shiweifu
Copy link

引入了 python-dotenv 库,在项目启动时候对 .env 文件进行加载。

这样用户直接配置 .env 文件中对应的数据库条目即可,不用直接修改 settings.py 文件

同时更新了 README 对应部分的描述

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant