This is a relative filename. Relative to whatever the "current
directory" is at the it is executed and that could be anything. By happy
accident, when you're running "manage.py runserver", the current
directory is such that such relative loading works.
A better approach that has been discussed on this list recently is to
create a setting specifying the base path and then us os.path.join to
connect that setting and you relative paths.
The setting could be constructed from the __file__ variable in the
settings file itself (if all your paths are relative to the settings
file), or it could be based on something in sys.path or whatever you
like. Remember that the settings file is a Python file, so you can do
some computations in there. The only thing you should not do is import
anything related to Django in your settings file (which means don't
import your apps, since they'll import Django and it all goes horribly
downhill from there).
Regards,
Malcolm
--
Many are called, few volunteer.
http://www.pointy-stick.com/blog/