Django 3 Web Development Cookbook
上QQ阅读APP看书,第一时间看更新

Handling sensitive settings

When working when configuring a Django project, you will surely deal with some sensitive information, such as passwords and API keys. It is not recommended that you put that information under version control. There are two main ways to store that information: in environment variables and in separate untracked files. In this recipe, we will explore both cases.