Django: Error: Unknown command: 'makemigrations'

前端 未结 7 1702
夕颜
夕颜 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:34

    I was using version 1.9 and still getting this error. I had unapplied migrations and that was the root cause in my case. I ran 'python manage.py migrate' to apply them and it worked for me.

提交回复
热议问题