Revision history [back]
I'm not sure if Django automatically loads a file named local_settings.py or if you need to add something like the following to your settings.py:
try:
from local_settings import *
except ImportError:
pass
Then you would not check local_settings.py into revision control and have it only on your development system(s).
That said, I'm not sure if this is even needed anymore with modern Django versions. When your code hits an unexpected exceptions, does it stop in Wing? If so you don't need this.
I'm not sure if Django automatically loads a file named local_settings.py or if you need to add something like the following to your settings.py:
try:
from local_settings import *
except ImportError:
pass
Then you would not check local_settings.py into revision control and have it only on your development system(s).
That said, I'm not sure if this is even needed anymore with modern Django versions. When your code hits an unexpected exceptions, does it stop in Wing? If so you don't need this.