Monday, December 9, 2013

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

On Sun, Dec 8, 2013 at 8:02 PM, Gideon Bar <gideonbar@gmail.com> wrote:
>
> Hello
>
>
> I am new to Django and followed this tutorial https://docs.djangoproject.com/en/1.6/ref/django-admin/#django-admin-startproject
>
> 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?
>

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1LRH%3DGk_a4Eg9F%3DsamovQWuJV08A8eDgTygLPj5fdUEGA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate