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 
<https://stackoverflow.com/questions/49344433/django-db-migrations-exceptions-nodenotfounderror-migration-authentication-nonex>

Can't get rid of "nonexistent parent node" in django 1.11 
<https://stackoverflow.com/questions/45124207/cant-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.

<https://lh3.googleusercontent.com/-T8myMeiuk7E/Wt1-7clrS6I/AAAAAAAAFMA/H4HvwfJCjjYrBgJbXOpuduuuIZ0r1q2gACLcBGAs/s1600/Untitled%2BDiagram.jpg>


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

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'




-- 
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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to