django.db.migrations.exceptions.NodeNotFoundError

前端 未结 5 1992
无人共我
无人共我 2020-12-07 01:00

When i run makemigrations command, i got this error:

Traceback (most recent call last):
 ...
django.db.migrations.exceptions.NodeNotFoundError:          


        
5条回答
  •  天涯浪人
    2020-12-07 01:29

    If you have dangling dependency to 0002_auto_20160618_1143 in a file created by makemigrations command and file does not exist then, please remove this reference from that file. Remember to to remove migration from django_migrations table as well. That fixed my issue

    dependencies = [
        ('workspace', '0002_auto_20160618_1143'),
        ('datasets', '0001_initial'),
    ]
    

提交回复
热议问题