Your reply doesn't make sense to me. It is not WINDOWS looking for the .py file, it is the Python interpreter. In any case, I have tried that to prove that it is not the solution. Here is the proof:
C:\python\projects\iFriends>python django-admin.py help python: can't open file 'django-admin.py': [Errno 2] No such file or directory C:\python\projects\iFriends>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\java \jdk1.6.0_07\bin; c:\python25;C:\Program Files\PuTTY;C:\python\Django-1.0\django\bin C:\python\projects\iFriends>echo %PYTHONPATH% c:\python\Django-1.0\django\bin C:\python\projects\iFriends>dir C:\python\Django-1.0\django\bin Volume in drive C has no label. Volume Serial Number is 9C4E-C9AE Directory of C:\python\Django-1.0\django\bin 09/19/2008 07:36 AM <DIR> . 09/19/2008 07:36 AM <DIR> .. 07/06/2008 02:39 AM 326 compile-messages.py 07/06/2008 02:39 AM 257 daily_cleanup.py 12/30/2006 02:25 AM 128 django-admin.py 07/06/2008 02:39 AM 323 make-messages.py 09/19/2008 07:36 AM <DIR> profiling 12/30/2006 02:25 AM 900 unique-messages.py 07/12/2005 09:25 PM 0 __init__.py 6 File(s) 1,934 bytes 3 Dir(s) 122,976,169,984 bytes free On Sep 19, 10:32 am, Rodolfo <[EMAIL PROTECTED]> wrote: > I guess for that to work you have to have it on Windows PATH env. > variable, and not PYTHONPATH. > That's cuz Windows can't find the file you're passing to python. > > []'s > > Rodolfo > > tcp escreveu: > > > Hi, > > > New to Python...getting started with Django. > > > I've just installed Django and and following some getting started > > instructions. > > > I'm trying to run django-admin like this: > > > c:\myproject> python django-admin.py startproject iFriends > > > and I get this problem: > > > python: can't open file 'django-admin.py': [Errno 2] No such file or > > directory > > > This shouldn't be surprising as django-admin.py is not in the current > > working directory. The file is in C:\python\Django-1.0\django\bin. > > > I DO have C:\python\Django-1.0\django\bin on the PYTHONPATH. Here is > > proof: > > > >>> import sys > > >>> print sys.path > > ['', 'c:\\python\\Django-1.0\\django\\bin', 'C:\\Windows\\system32\ > > \python25.zip > > ', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat- > > win', 'C: > > \\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site- > > packages'] > > > So, why is python not finding the file that is on the PYTHONPATH. I > > thought the PYTHONPATH was similar to a Java CLASSPATH? Do I > > misunderstand? > > > Tom --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---