django.db.migrations.exceptions.NodeNotFoundError while upgrading django

877 views
Skip to first unread message

Akhi

unread,
Apr 23, 2018, 2:38:06 AM4/23/18
to Django users
I am upgrading my django project from django1.5 to django1.11.10. while upgrading when I run ./manange.py migrate I am getting django.db.migrations.exceptions.NodeNotFoundError

django.db.migrations.exceptions.NodeNotFoundError: Migration account.0004_auto_20180419_1309 dependencies reference nonexistent parent node (u'admin', u'0003_advertisements_alignedcourses_api_integration_appreciation_certificate_company_company_types_contrib')

I could not find any migration files from my project and I followed some of the solution which I found in internet.

django.db.migrations.exceptions.NodeNotFoundError Migration authentication nonexistent parent node

Can't get rid of "nonexistent parent node" in django 1.11

I reinstalled django.Deleted all .pyc files. deleted all migrations files. Still I am getting the same error.Please help me and can you please explain why it is happening?

I have attached my project structure.


************************************

admin/apps.py


class AdminConfig(AppConfig):

    name = 'apps.admin'

    label = 'admin_app'


account/apps.py

class AccountConfig(AppConfig):
    name = 'account'
    label = 'account_app'

and I have mentioned meta properties for all the admin app models.

class Meta:
        '''
            Meta properties for this model
        '''
        app_label = 'admin_app'




Untitled Diagram.jpg

Matthew Pava

unread,
Apr 23, 2018, 9:16:35 AM4/23/18
to django...@googlegroups.com

Did you try running makemigrations first?

 

./manage.py makemigrations

--
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...@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/0d5e63a8-0281-4e53-ab18-8f56030b2787%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bansi Viradiya

unread,
Aug 11, 2020, 8:08:08 AM8/11/20
to Django users
I am facing the same issue..
Anyone get the solution for the same?
Please domlet me know if anyone get the solution.
Reply all
Reply to author
Forward
0 new messages