I have the same problem on Windows and it seems I've found the problem. I have both 2.7 and 3.x installed. It seems it has something to do with the associate program of .py:
In commandline type:
assoc .py
and the result is:
.py=Python.File
which means .py is associated with Python.File
then I tried this:
ftype Python.File
I got:
Python.File="C:Python32python.exe" "%1" %*
which means in commandline .py is associated with my Python 3.2 installation -- and that's why I can't just type "django-admin.py blah blah" to use django.
ALL you need to do is change the association:
ftype Python.File="C:Python27python.exe" "%1" %*
then everythong's okay!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…