Lynob Lynob - 1 year ago 119
Python Question

can't create django project using Windows command prompt

if i run startproject mysite (which is located in
) will open in a file editor (now it opens in python ide, but in the past i had pype so it would open in pype) so the file opens:

from django.core import management

if __name__ == "__main__":

i see no output in the command prompt at all, so lets say i typed

C:\abc:> startproject mysite

when I hit enter i see

and the project will not be created using the command prompt

this issue is not new for me, i'm creating my python projects using pydev, i would love to fix this issue with the command prompt though :)


when I run

pyhon startproject mysite

the output of the command prompt is

python: can't open '' file : [Errno 2] No such file or directory

Answer Source

I don't think Windows supports the shebang line. Try invoking it with python ...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download