django-admin.py is not working

前端 未结 4 1148
我在风中等你
我在风中等你 2020-12-21 15:47

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         


        
4条回答
  •  半阙折子戏
    2020-12-21 15:49

    I had the same problem and could not solve it for hours. Create a new project from Pycharm or any other program you are using, install Django and then instead of running

    django-admin.py startproject *project_name* .
    
    

    run

    django-admin startproject *project_name* .
    

    Ommiting .py extension worked for me and everything is running as expected now.

提交回复
热议问题