Why does the startproject command open a file instead of creating project folders

49 views
Skip to first unread message

Gideon Bar

unread,
Dec 8, 2013, 3:02:17 PM12/8/13
to django...@googlegroups.com

Hello



I am using windows 7 64 bit and the startproject command on open a file instead of creating project folders

How can I create a project from the command line?


Ivan Ramirez

unread,
Dec 8, 2013, 7:19:53 PM12/8/13
to django...@googlegroups.com
I had the exact problem today when going through the first part. This worked for me:

python “C:\Program Files\Anaconda\Scripts\django-admin.py” startproject mysite

Tom Evans

unread,
Dec 9, 2013, 6:28:23 AM12/9/13
to django...@googlegroups.com
django-admin.py is a python file. Under windows, what happens when you
run a file is determined by it's extension, and on your system python
files have been configured to open in a text editor when "run",
instead of being run by the python interpreter.

You can either change this so that windows instead runs the python
interpreter, or you can explicitly run python, passing the full path
to the django-admin.py script as the first argument.

Cheers

Tom
Reply all
Reply to author
Forward
0 new messages