I've recently started learning Django and one good practice I was told about was to have multiple
settings.py files while using version control. For example, if I were to make a Django-based website, I should have a
settings_local.py file for my local machine, a
settings.py file to put on Github and yet another to keep on the production server, so as to
protect my secret keys.
Another forum mentioned that this isn't a good practice since if there are a number of developers working on the same project and you need to make a change in the settings.py file (let us say add a middleware), then you'll have to personally notify all the developers to make changes in their respective settings_local.py files. This argument seems pretty valid too.
So, I had two doubts:
1. Are the secret keys unique for a particular machine?
2. Should multiple-settings-practice be followed? Or is there a way out?