August 2016
Beginner to intermediate
717 pages
15h 24m
English
Configuration doesn't necessarily need to be complex. If you want to keep things simple, you can work with two settings files: settings.py for common configuration and local_settings.py for sensitive settings that shouldn't be under version control.
Most of the settings for different environments will be shared and saved in version control. However, there will be some settings that are specific to the environment of the project instance, for example, database or e-mail settings. We will put them in the local_settings.py file.
To use local settings in your project, perform the following steps:
settings.py, add a version of local_settings.py that claims to be in the same ...Read now
Unlock full access