I recently upgraded from OS X Tiger to 10.5 Leopard. I've been trying
for the last two days to get my Django development setup working
again. There seems to be a row of pitfalls involved in this but I
think I've gotten at least a part of the way.

Right now, I get the "No module named ..."-error when I try to run "./
manage.py runserver". The modules that don't get picked up are the
ones outside of the specific project folder.

I'm definitely no Bash-wizard, but clearly there is some form of path-
or pythonpath variable mismatch going on here. If I fire up the python
interpreter and import the modules (or django for that matter) it
works out just fine. MySQLdb works fine to import too (though it was a
hassle to get it compiled and installed at first). "Import Image"
works too.

I had the MacPython 2.5 binary installed on 10.4, which I have removed
now (hopefully completely, using a couple of online tutorials) since
Python 2.5.1 is installed by default on 10.5. The built-in one is what
I get when I fire up python from the terminal, and that's where it
works to import stuff.

Here's my .profile-file:

DJANGOPATH=$HOME/www/django/src/django/bin
PYTHONBINPATH=/Library/Frameworks/Python.framework/Versions/2.5/bin
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:
$PYTHONBINPATH:$DJANGOPATH:$PATH
export PYTHONPATH=$PYTHONPATH:$HOME/www/django/src:$HOME/www/django/
projects
export LC_CTYPE=en_US.UTF-8

All my django projects are in www/django/projects/, relative to my
home folder. "Django-admin.py startproject" works.

Is there a way for me to know which python interpreter is used by
manage.py? My guess is that the correct python interpreter is somehow
not being used, since I can import the modules from the interactive
shell without problem. Remnants of MacPython or Python2.3?

There's probably more info relevant to my problem, but I can't
identify anything else at the moment.

Any input on this would be greatly appreciated... Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to