Nothing happens when I do: python manage.py command

前端 未结 11 523
半阙折子戏
半阙折子戏 2020-12-07 02:50

I\'m new to django and currently going through the main tutorial. Even though it was working earlier, when I do python manage.py runserver OR python manage.py -h OR with any

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 03:20

    Just stuck with the same problem. Found a solution that works, but tedious.

    You need to know the location of the python.exe file in your computer. It is usually C:/Users/USERNAME/AppData/Local/Programs/Python//python.exe

    Modify as required and run the following in CMD,

    C:/Users/USER1/AppData/Local/Programs/Python/Python38-32/python.exe
    F:/mysite/manage.py runserver
    

    Hope this works :)

提交回复
热议问题