I had exactly the same problem and it was solved using this tool: FileTypesManager
The problem is that django-admin.py is not getting the correct arguments from the command line. I did a test by breaking a couple of lines in the front of the admin script to display the number of arguments and what they were before it did anything else. Hack:
#!d:\python27\python.exe from django.core import management import sys print 'Number of arguments:', len(sys.argv), 'arguments.' print 'Argument List:', str(sys.argv) if __name__ == "__main__": management.execute_from_command_line()
When you run django-admin.py you will see that only one argument is passed. This is not true.
As suggested in several forums, I tried both from the command line, and both looked like this:
assoc .py --> .py=Python.File ftype Python.File --> Python.File="D:\Python27\python.exe" "%1" %*
Then I looked through the registry and the values looked good.
However, when I ran FileTypesManager , (it's free), it was showing something else. The command line was set as:
"D:\Python27\python.exe" "%1"
I have no idea why, but as soon as I updated this value, it all worked flawlessly.
I hope this helps.
croc
source share