Merge Project

38 views
Skip to first unread message

Anil Singh

unread,
Dec 29, 2022, 1:22:18 AM12/29/22
to Django users
Hi Friends,

I am merging tow one project to another project, also install app in settings.py, but i error : RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

How can i fix this error
Need your help friends

Thanks & Regards
Anil

David Nugent

unread,
Dec 29, 2022, 6:59:07 PM12/29/22
to django...@googlegroups.com
"Anil Singh" <seobean...@gmail.com> writes:
Hi Friends,

I am merging tow one project to another project, also install app in settings.py, but i error : RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

I suspect the clue is right there in the error message.

The model is probably being imported into a script being executed early, but django.contrib.contenttypes is either missing from INSTALLED_APPS or the contenttypes app is not yet "ready". If it is there, make sure the punctuation around it is valid (commas etc). It may also be related to the order of apps in the INSTALLED_APPS array althought I am not sure if that is an issue with contemporary Django anymore.

Regards,
/d

Reply all
Reply to author
Forward
0 new messages