django-admin.py is not working

前端 未结 4 1142
我在风中等你
我在风中等你 2020-12-21 15:47

Am new to django and i have been trying to set up a project with no success. When i type django-admin.py startproject mysite i get this.

C:\\Users\\WASSWA SA         


        
4条回答
  •  粉色の甜心
    2020-12-21 16:12

    This is an error with Python's installation on Windows. If you have the regkey entry

    HKEY_CLASSES_ROOT\py_auto_file\shell\command\open\
    

    change the value from

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

    to

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

    (Or your equivalent installation location)

    This ensures that command-line arguments are passed onto python, rather than explicitly ignored. This is fixed in the latest install of Python 2.7. %* is argv[]. "%1" is the script's absolute path.

提交回复
热议问题