Django: dependencies reference nonexistent parent node
Solution - 1
Remove pyc
files from your migrations folder.
Solution - 2
Need to remove that reference from testBolt.0001_initial
by editing migration file.
Solution - 3
Remove the new changes from the models and run
python manage.py migrate --fake
Now again modify your models with new changes
Run
python manage.py makemigrations
And then again run
python manage.py migrate
In my case, I had the .py
extension in the dependency module name, like this:
dependencies = [ ('dashboard', '0003_auto_20181024_0603.py'), ('auth', '__latest__'), ('contenttypes', '__latest__'),]
I removed the .py
, changing it to this
('dashboard', '0003_auto_20181024_0603')
and that fixed it.