tags:

views:

123

answers:

3

Hi I'm learning django and I did successfully start a site on Window XP by following the tutorial.

However, on Window 7 when I issued:

django-admin.py startproject mysite

python.exe was started and a window appeared to ask me to choose either python.exe or other program to open a file....

did I do anthing wrong or there are more tricks for window 7?

thanks.

+1  A: 

Issues with path to python.exe or django-admin.py?

Dingle
I guess so... thanks! Actually, I tried another Window XP, Django just worked very well....but with this Window 7...it did not. and no warning whatesever.
john
we should report this to django ;)
stdnoit
A: 

i have exactly the same problem here and i have added C:\python installation directory\Scripts

now django-admin.py seems like working but not really

if i type django-admin.py --version

instead of output the version

it output the "help" view...

whatever subcommands i put for django-admin. it doesnt work.

been trying to solve this for an hour..... :(

stdnoit
If you look into django-admin.py, there are only 5 lines and it just delegates the commands to django.core.management. django-amdin.py can be simply copied around. Check if django is in the python path too.
Dingle
A: 

That's already been reported to the django, see http://bugs.python.org/issue7936 And these's an solution: open regedit and find python.exe like this "C:\Python26\python.exe" "%1" change it to "C:\Python26\python.exe" "%1" %*

zpisgod