ImportError: No module named django.core.management

I started working through the Django 1.1.1 tutorial and promptly ran into the following error:

ImportError: No module named django.core.management

I was trying to execute the following command from the mysite project directory:

./manage.py --version

I’m using python 2.5 on Mac OS X, 10.6.2 (Snow Leopard) because I’m learning Django to use in conjunction with Google App Engine.
The first change I made was to set an alias so that python 2.5 is used. The second was to move /Library/Python/2.5/site-packages to the beginning of PYTHONPATH. I made these changes by adding two lines to my .profile:

export PYTHONPATH="/Library/Python/2.5/site-packages:$PYTHONPATH"
alias python=python2.5

Here’s something else that may help you:

Discover more from BenSayer.com

Subscribe now to keep reading and get access to the full archive.

Continue reading