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/cbce5c34-652a-42ac-84b5-0c881abce893n%40googlegroups.com.