Sunday, April 22, 2018

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

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'




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

No comments:

Post a Comment