Django Settings Aren't Accessible from Models
We ran into an interesting problem yesterday. As any good programmer knows, you never hard code path information into your code. You use properties files, external XML, etc. In Django, you use the settings.py file.
The settings.py file is a python file like any other. It's all python code. This means that you can add your own stuff in there too - like file and directory paths.
Yesterday we were working on some model code for a client's e-commerce application and the strangest thing happened. It wouldn't let us access the variables from the settings file ...
