We reproduce what has been done here: https://github.com/dissemin/dissemin
The following files can be found under cof/settings/
- 
common.py: the settings that are shared by all the environments we have + the secrets (see below).
- 
dev.py: the settings used by the vagrant VM for local development.
- 
prod.py: the production settings (for both www.cof.ens.fr and dev.cof.ens.fr)
There is also a notion of "secrets". Some settings like the SECRET_KEY
or the database's credentials are loaded from an untracked file called
secret.py in the same directory. This secrets are loaded by the common
settings file.
Note: to apply this patch on your Vagrant VM, you have to change the environment variable DJANGO_SETTINGS_MODULE to cof.settings.dev. By default in the current installation, it is loaded from ~/.bashrc, you should edit this file and reload it (source ~/.bashrc)
