Thursday, December 29, 2022

Re: Merge Project

"Anil Singh" <seobeanilsingh@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

No comments:

Post a Comment