Monday, December 26, 2016

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

Hai, 
I Think Its better to delete migration files except 001_initial.py and _init_.py and again do makemigrations.

Thank you,
P.Hemanth.

On Fri, Dec 23, 2016 at 11:42 PM, skerdi <skerdilajdhoxha@gmail.com> wrote:
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')

--
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-users@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.

--
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-users@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/CAMm3J0bP3Qss33o5W5G-ym8dYfp1ELaJNwkgs2xRtT6ArvZHBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment