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')`enter code here`
This is 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 added meta property for all admin models
class Meta:
'''
Meta properties for this model
'''
app_label = 'admin_app'
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?

Probably you have apps with the same name - your own app called
adminanddjango.contrib.admin. No mater what is the full python path to the app final part is important part and need to be unique across the project.You can try to change the
labelof theAppConfigof your applications which conflict with django's or other 3th party apps.Look at the Django docs https://docs.djangoproject.com/en/1.11/ref/applications/#django.apps.AppConfig.label
and in the Django's source code https://github.com/django/django/blob/stable/1.11.x/django/apps/config.py#L31-L34