Django FAQ
django.db.migrations.exceptions.NodeNotFoundError: Migration auth.0013_user_following dependencies reference nonexistent parent node (‘users’, ‘0002_contact’)
If it not solve after reseting the migrations, follow the following steps: Apparently django kept migration files within it’s own module folder. This is why you need to flush the django:
- pip uninstall django.
- /Lib/site-packages, deleted django folder.
- Deleted all *.pyc files in my project.
- Deleted all pycache folders in my project.
- Cleared all migrations folders in my project (keep init.py).
- pip install django==x.x.x.
- python manage.py migrate.
- python manage.py makemigrations <app_name>.
- python manage.py migrate.
- python manage.py runserver. Now your problem will be solved.
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment






