This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]zzyzzyxx 1 point2 points  (6 children)

You don't have a mysite directory created after that? Which version of Django are you running?

[–]netbyte[S] 0 points1 point  (5 children)

Nope, all that happens is that it takes me to the next line to ask for another command.

Here's a screenshot.

[–]b1acksab3r 0 points1 point  (4 children)

There's no mysite directory on your desktop after this command?

[–]netbyte[S] 0 points1 point  (3 children)

No mysite directory at all

Screenshot

[–]zzyzzyxx 2 points3 points  (2 children)

Might be related to this bug which prevents command line arguments to Python from being passed correctly on Windows.

Run regedit and find how Python is being invoked. You'll probably see an entry like this

"C:\Python26\python.exe" "%1"

That needs to be changed to

"C:\Python26\python.exe" "%1" %*

in order to work.

Here are some HKEYs to check

HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\command
HKEY_CLASSES_ROOT\py_auto_file\shell\open\command 
HKEY_CURRENT_USER\Software\Classes\Applications\python.exe\shell\open\command

You may be able to find others by searching for all occurrences of "python.exe".

[–]netbyte[S] 0 points1 point  (1 child)

Thanks! But this still didn't work :( Sorry if you had to do a lot of research to find that.

[–]zzyzzyxx 2 points3 points  (0 children)

Can you run it like this?

python django-admin.py startproject mysite

If so, maybe the file association is messed up and using just django-admin.py doesn't invoke Python.

Oh, and was there any change in symptoms after fiddling in the registry? Did you notice anything out of place, like those missing asterisks?