Django NodeNotFoundError during migration

前端 未结 4 1360
梦毁少年i
梦毁少年i 2021-01-08 01:12

The error I get when I try to runserver for my django app is as follows:

django.db.migrations.graph.NodeNotFoundError: Migra

4条回答
  •  鱼传尺愫
    2021-01-08 01:43

    your migration has a dependency on a migration in another app () which apparently doesn't exist. if you've removed or moved/consolidation migrations in the 'auth' app, this is possibly why. if you remove the offending migration from this migration, just make sure changes from the '0007' migration in the auth package (check your source code revision history) have already been applied to your current database and you should be fine to continue without that explicit migration. i would also consider checking if any other apps in your project depend on those missing migrations from 'auth'. cheers.

    (u'auth', u'0007_alter_validators_add_error_messages')
    

提交回复
热议问题