You can use separate settings files for development and deployment,
this is the way most people do deployment-specific configurations.
For example, you can have main settings module that imports all names
from settings_deployment and settings_local, witch catched ImportError
exceptions, like:
<settings.py>
try:
from settings_deployment import *
except ImportError:
# not a prod environment
pass
try:
from settings_local import *
except ImportError:
# no local specific modifications
pass
Putting these imports at the bottom of settings.py will cause the
values will be overwritten with imported ones.
--
Artificial intelligence stands no chance against natural stupidity
Jarek Zgoda, R&D, Redefine
jarek...@redefine.pl