Practical Django Projects
It was this error that spent 2 hours of my day today:
ImportError: No module named coltrane
I had included my PythonPath entry manually into my MacOSX home directory via:
vi .profile
and entering:
export PYTHONPATH=/Users/myname/mydjangodirectory:$PYTHONPATH
This indeed works, but i was using a super user account to run all of my commands because i wanted the development web server to run over the default port 80, of which the normal user account doesn't have the privileges to. Silly me, because setting the .profile is only local for the user you're using, not global. Of course i stopped running the sudo commands and just used the logged in user, and all was fine!
*By the way to save in Vi and exit: hold shift + ZZ*
