hello.I have the same problem,can you share how to sovling this? thanks very much. I just remove the default apps of INSTALLED_APPS, too 在2020年7月10日星期五 UTC+8 23:53:19<jzt...@gmail.com> 写道:
> Dan, > > Thank you so much. I was able to get it figured out after I smoothed out > an issue with the database. My assumption is something with the database > was causing it to throw this confusing and unrelated error. I changed the > settings files around too but really did not change or remove anything that > would have made a difference. Or should have. The app was not included, etc. > > Best, > > JJ > > > On Monday, July 6, 2020 at 8:26:26 PM UTC-4, Dan Madere wrote: >> >> I agree that it should work. Django uses ContentType in the admin and >> user authentication, but you mention that you have removed these from >> INSTALLED_APPS, so I don't get it. I'd try clearing .PYC files first. Then >> maybe a sanity check.. double check what settings file you're actually >> using, and if INSTALLED_APPS contains what you expect. >> >> Dan >> >> On Monday, July 6, 2020 at 2:33:19 PM UTC-4 jzt...@gmail.com wrote: >> >>> Hello, >>> >>> I am not using any of the ContentType relations, etc right now in my >>> Django 2.12 Python 3.6 application, am I able to run the application >>> without having django.contrib.contenttypes in the INSTALLED_APPS? Is there >>> a piece I am not understanding that Django uses it for in the background? >>> >>> I thought I had it working with it removed but I am getting: >>> >>> Model class django.contrib.contenttypes.models.ContentType doesn't >>> declare an explicit app_label and isn't in an application in INSTALLED_APPS. >>> >>> I have nothing in the INSTALLED_APPS except my apps and: >>> >>> 'django.contrib.staticfiles', >>> 'rest_framework', >>> >>> Was trying an attempt where I avoided migrating contenttypes into a >>> legacy database. >>> >>> Best, >>> >>> JJ >>> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/56a34e69-7e60-4b87-ab73-3478af777288n%40googlegroups.com.