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
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.