On Feb 16, 2008 1:46 PM, doNascimento <[EMAIL PROTECTED]> wrote: > I'm on mac OS X (10.4) > Installed the official release (0.96.1) > I've put django-admin.py on my path folder but it's not working when I > use Python before it. (I get Python couldn't open ...)
I believe you need to do one of two things: *either* you make sure that django-admin.py is on your path (so that when you do e.g. "echo $PATH" in a shell, one of the directories listed should be where you have django-admin.py). Then you also need to make sure that django-admin.py is executable (by setting the x-flag of django-admin.py; if you do "ls -l django-admin.py" in the directory where django-admin.py is located you should see something like "rwxr-xr-x" in front of django-admin.py; if there are no x:es, you need to set the x flag by doing someting like "chmod u+x django-admin.py"). When you have done this, you should be able to run django-admin.py from whichever directory you are in (given that you have a working installation of python that is, but it seems you already have that). *or* you run django-admin.py using the "python" command; in this case, you have to give the full (or relative) path to django-admin.py, as the python command will not use your PATH setting to locate files. Me personally, I usually create a "bin" directory in my home directory, put "/Users/<username>" in my path, and put symlinks to whatever scripts or stuff I want to be able to run directly from the command line. Regards, johan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---