Do what Daniel suggested in the beginning of this thread. First, test with the full path, so run:
/opt/local/lib/python2.4/site-packages/django/bin/django-admin.py startproject on the command line. If that works, then add the django bin to your path, which is probably in one of the do files in ~ Try this: $cd ~ $grep PATH ~/.profile Also try other files that start with a dot, like .bashrc and .bash_profile Find out which one shows the PATH of PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin Edit that file, and add a colon and then the path to the Django bin (all one line) PATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/python2.4/site-packages/django/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin If the long full path command does not work, altering your PATH is not going to help you, and you will first need to fix that problem, then come back, and add the path to it. Please reply all so the list gets the message, not just directly to the sender. * On a side note, could one just symblink /opt/local/lib/python2.4/site-packages/django/bin to /opt/local/bin and save the hassle of an increasingly long PATH? I have added apache's bin to mine, and a few others. I am not sure how I feel about the symblinking, but wanted to know if it wold work. -- Scott * If you contact me off list replace talklists@ with scott@ * On Jan 22, 2010, at 10:22 AM, Jasper Frumau wrote: > Quite familiar with Shell, but never really worked a lot with paths before: > Jaspers-MacBook-Pro:~ jasper$ printenv > TERM_PROGRAM=Apple_Terminal > TERM=xterm-color > SHELL=/bin/bash > TMPDIR=/var/folders/E6/E6iKsafiF9Wnbja513eS0E+++TI/-Tmp-/ > Apple_PubSub_Socket_Render=/tmp/launch-naWaeA/Render > TERM_PROGRAM_VERSION=272 > USER=jasper > COMMAND_MODE=unix2003 > SSH_AUTH_SOCK=/tmp/launch-HzEvtU/Listeners > __CF_USER_TEXT_ENCODING=0x1F5:0:0 > PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin > PWD=/Users/jasper > DBUS_LAUNCHD_SESSION_BUS_SOCKET=/tmp/launch-ou2qNd/unix_domain_listener > SHLVL=1 > HOME=/Users/jasper > LOGNAME=jasper > LC_CTYPE=UTF-8 > DISPLAY=/tmp/launch-p1F3gE/:0 > _=/usr/bin/printenv > OLDPWD=/opt/local/apache2/htdocs/wordpress/wp-content/themes/chapter26 _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
