Django CommandError: App 'polls' has migrations

后端 未结 5 1467
面向向阳花
面向向阳花 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:11

    The problem is that you are using Django 1.8 while going through 1.6 tutorial. Pay attention to the first words at the beginning of the tutorial:

    This tutorial is written for Django 1.6 and Python 2.x. If the Django version doesn’t match, you can refer to the tutorial for your version of Django by using the version switcher at the bottom right corner of this page, or update Django to the newest version.

    In your case, either downgrade to 1.6, or use the tutorial for the development (currently 1.8) version.

提交回复
热议问题