Django: Error: Unknown command: 'makemigrations'

前端 未结 7 1667
夕颜
夕颜 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:49

    Find out what version of django you're running (thanks @BradyEmerson):

    python -c "import django; print(django.get_version())"
    

    If older than 1.8:

    pip install --upgrade django
    

提交回复
热议问题