Django NodeNotFoundError during migration

前端 未结 4 1356
梦毁少年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 02:01

    First I would suggest you to upgrade your django

    pip install --upgrade django
    

    If this doesn't help you then try the following:

    • Remove the new changes from the modals and run -- python manage.py migrate --fake
    • Now again modify your models with new changes and Run -- python manage.py makemigrations
    • And then again run -- python manage.py migrate

提交回复
热议问题