Brandon,
I had the same issue and this is how I resolved it.
1. Delete the reference django-admin.py in /usr/local/bin that was
generated by the installer.
2. Then, manually recreate the symlink by doing:
3. ln -s YOUR_ABSOLUTE_PATH/build/scripts-2.7/django-admin.py /usr/local/bin
4. Close the terminal
5. Reopen.
6. Create your project from your desired folder. (django-admin.py
startproject foo)
Hope that helps!
On Thursday, May 8, 2008 9:33:26 AM UTC-5, Brandon Taylor wrote:
>
> Hello everyone,
>
> Sorry for the late reply. I have changed the shebang line to /usr/
> local/bin, which is where the Python interpreter is installed. I have
> changed permissions on django-admin.py to be executable.
>
> Here is my .bash_profile:
>
> PATH=$PATH:/usr/local/bin
> PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
> PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:$
> {PATH}"
> export PATH
>
> And STILL - django-admin.py startproject foo = command not found
>
> WTF? I'm at a loss!
>
> On May 8, 6:45 am, "Shane Emmons" <[email protected]> wrote:
> > Did you, "chmod +x django-admin.py"?
> >
> >
> >
> > On Thu, May 8, 2008 at 6:52 AM, Francis <[email protected]> wrote:
> >
> > > It works without problem here.
> >
> > > 1. I copy my trunk into the default python site-package /Library/
> > > Python/2.5/site-packages/django
> >
> > > Normally I use /usr/bin, since local/bin doens't exist on Leopard
> > > (exept if you are using something like fink or macport)
> > > But I tried it to see if it works.
> > > 2. I create the directory : sudo mkdir /usr/local/bin
> > > 3. then symlink : sudo ln -sf
> /Library/Python/2.5/site-packages/django/
> > > bin/django-admin.py /usr/local/bin/django-admin.py
> >
> > > it works. /usr/local/bin is already in your path.
> >
> > > Francis
> >
> > > On May 7, 6:46 pm, Brandon Taylor <[email protected]> wrote:
> > > > Hello everyone,
> >
> > > > I'm setting up a dev environment on a co-worker's Mac running 10.5.2
> >
> > > > I have Django cehcked out from trunk, and symlinked into Python
> 2.5.2.
> > > > I can successfully import Django from within a Python terminal
> > > > session.
> >
> > > > I have django-admin.py symlinked from the trunk checkout to
> /usr/local/
> > > > bin.
> >
> > > > When I try to execute: django-admin.py startproject foo, I get an
> > > > error saying:
> > > > django-admin.py: command not found
> >
> > > > I have added /usr/local/bin to my .bash_profile, resourced, and
> > > > restarted, but still no dice. Anyone have any ideas on what I did
> > > > wrong? I've doen this many times, just not on 10.5.
> >
> > > > TIA,
> > > > Brandon
> >
> > --
> > Shane Emmons
> > E: [email protected]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Z3oYEu4WrjsJ.
To post to this group, send email to [email protected].
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.