I\'ve been looking for a better way to deal with site-specific settings (in this case, the django settings.py file).
The settings.py structure and fields are fairly
The way I handle this is to have a base settings.py file and then a settings file for each environment (eg dev_settings.py, live_settings.py)
At the top of each environment specific file I have
from settings import *
I can then simply override any settings I need to change on an environment specific basis
To ensure each environment uses the correct settings I just modify the DJANGO_SETTINGS_MODULE environment variable. How you do this depends how you are deploying django (mod_wsgi, mod_python and so on...)