How to integrate Django and Cygwin?

后端 未结 9 1267
野趣味
野趣味 2021-02-14 11:35

I have a Windows box with cygwin, python and django installed.

Now I want to run django-admin, but when I do I get the error:

$ django-admin.py
c:\\Pytho         


        
9条回答
  •  别跟我提以往
    2021-02-14 12:18

    Just copy the django-admin.py to the current location you are working on for e.g

    on Cygwin:

    /projects/
    

    on your windows directory it will look like this:

    C:\cygwin\home\\projects\
    

    once you copy the file, you can create your project by typing this command:

    $ python django-admin.py startproject mysite
    

    and that's all - you have completed your first project using the Cygwin linux-like environment.

提交回复
热议问题