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?