Django: Error: Unknown command: 'makemigrations'

前端 未结 7 1663
夕颜
夕颜 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:47

    Migrations were first added in version 1.7, officially released on September 2, 2014. You need to make sure your tutorial matches the version of Django you're working with. For instance, this version of the tutorial covers 1.9:

    https://docs.djangoproject.com/en/1.9/intro/tutorial01/

    Or, if you're using an older version of Django, you can change the "1.9" in that URL to whatever version you're on (back to 1.3). Or use the dropdown on the docs page to pick the version and search for "tutorial".

提交回复
热议问题