Practical Django Projects

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*

Posted by voidet

Categorised under Django
Bookmark the permalink or leave a trackback.

One Comment

  1. Yup, this error’s been giving me the shits for a couple of days now… it comes and goes! When it works, I’m never quite sure what I’ve done to get it working… argh! I’ve just added the export line to .profile… will see how it goes. 🙂

    November 12, 2010 @ 10:04 am

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

or