Django: Error: Unknown command: 'makemigrations'

前端 未结 7 1665
夕颜
夕颜 2021-02-03 23:06

I am trying to follow the Django tutorial and I faced the following error when I enter python manage.py makemigrations polls

Unknown co         


        
7条回答
  •  遥遥无期
    2021-02-03 23:36

    You need to load the virtual environment before doing it.

    Use below code for Linux/OSX:

    source venv/bin/active
    

    And the following code for Windows

    source venv/Scripts/activate
    

提交回复
热议问题