When I migrate the database, I get this get error message: django.db.migrations.exceptions.NodeNotFoundError.

510 views
Skip to first unread message

skerdi

unread,
Dec 23, 2016, 1:12:36 PM12/23/16
to Django users
I have deleted the database, migrations, .pyc files, upgraded and downgraded Django.
I'm not able to fix it.
Any suggestions, please????????? 

System check identified no issues (0 silenced).
Unhandled exception in thread started by <function wrapper at 0x0000000003B51AC8>
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
    fn(*args, **kwargs)
  File "C:\Python27\lib\site-packages\django\core\management\commands\runserver.py", line 124, in inner_run
    self.check_migrations()
  File "C:\Python27\lib\site-packages\django\core\management\base.py", line 437, in check_migrations
    executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File "C:\Python27\lib\site-packages\django\db\migrations\executor.py", line 20, in __init__
    self.loader = MigrationLoader(self.connection)
  File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 52, in __init__
    self.build_graph()
  File "C:\Python27\lib\site-packages\django\db\migrations\loader.py", line 268, in build_graph
    raise exc
django.db.migrations.exceptions.NodeNotFoundError: Migration auth.0007_user_following dependencies reference nonexi
stent parent node (u'account', u'0002_contact')

hemanth pedhinti

unread,
Dec 26, 2016, 5:08:12 AM12/26/16
to django...@googlegroups.com
Hai, 
I Think Its better to delete migration files except 001_initial.py and _init_.py and again do makemigrations.

Thank you,
P.Hemanth.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4bc4571e-21bc-4530-85dd-ae7829b558e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages