Can someone explain the difference between local_settings.py
and settings.py
in Satchmo?
I understand that the settings.py
module imports the local_settings.py
module as it's final step. So any settings in local_settings.py
takes precedence. But what is the point of doing this? Isn't settings.py
supposed to be the configuration which is specific to your project anyway? Why bother with the additional step of having local_settings.py
?
Basically I find myself needing to add new settings and I can't figure out if I should put them in settings.py
or local_settings.py
. Can someone shine some light on this?
The local_settings.py
is only for on your local development system where it extends settings.py
. On your deployment server, settings.py
is used only without local_settings.py
.
One recommendation is that local_settings.py
is not included in your repository, so that each developer can have their own and so that it is not used on the deployment server.
Checkout these articles for more information: