Django: CommandError: App 'zero' does not have migrations
Django: CommandError: App 'zero' does not have migrations
我正在尝试 revert the migrations 我的 Django 应用程序。我有五个与数据库同步的迁移。我使用以下命令:
$ python manage.py migrate zero
失败并显示以下错误消息:
CommandError: App 'zero' does not have migrations (you cannot selectively sync unmigrated apps)
您应该提供要迁移的应用标签:
python manage.py migrate myapp zero
我正在尝试 revert the migrations 我的 Django 应用程序。我有五个与数据库同步的迁移。我使用以下命令:
$ python manage.py migrate zero
失败并显示以下错误消息:
CommandError: App 'zero' does not have migrations (you cannot selectively sync unmigrated apps)
您应该提供要迁移的应用标签:
python manage.py migrate myapp zero