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

Creating and including local settings

Configuration doesn't necessarily need to be complex. If you want to keep things simple, you can work with a single settings.py file for common configuration and use environment variables for settings that should be kept private and not in version control.