Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had exactly the same problem and solved it using this tool: <a href="http://www.nirsoft.net/utils/file_types_manager.html" rel="noreferrer">FileTypesManager</a></p> <p>The problem is that django-admin.py is not receiving the correct arguments from the command line. I did a test by hacking a couple of lines into the front of the admin script to display the number of arguments and what they were before it did anything else. The hack:</p> <pre><code> #!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() </code></pre> <p>When you run django-admin.py you will see that there is only 1 argument ever being passed. Which is not correct.</p> <p>As suggested in several forums, I tried both of the following at the command line, and both looked spot on:</p> <pre><code> assoc .py --&gt; .py=Python.File ftype Python.File --&gt; Python.File="D:\Python27\python.exe" "%1" %* //Correct </code></pre> <p>I then looked in the registry and the values looked good as well.</p> <p>However, when I ran <a href="http://www.nirsoft.net/utils/file_types_manager.html" rel="noreferrer">FileTypesManager</a>, (it's free) it showed something different. The command-line was set as:</p> <pre><code> "D:\Python27\python.exe" "%1" //Wrong! </code></pre> <p>I have no idea why, but as soon as I updated this value it all worked flawlessly.</p> <p>I hope that helps.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload