Django CommandError: App 'polls' has migrations

后端 未结 5 1466
面向向阳花
面向向阳花 2021-02-04 07:08

Trying to follow the tutorial at Django project.

The problem I\'ve come across is that when performing the command: python manage.py sql polls I\'m given th

5条回答
  •  情书的邮戳
    2021-02-04 07:20

    In Django 1.8, you should run another command--makemigrations [your app name]:

    $ python manage.py makemigrations polls
    

    You should see something similar to the following:

    Migrations for 'polls':
      0001_initial.py:
        - Create model Question
        - Create model Choice
        - Add field question to choice
    

提交回复
热议问题