Re: Django ContentTypes required?

2022-02-05 Thread Chaos Chameleon

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 写道:

> 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.


Re: Django ContentTypes required?

2020-07-10 Thread JJ Zolper
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/8ecd8179-ce83-4af7-82b2-dd97eda70a07o%40googlegroups.com.


Re: Django ContentTypes required?

2020-07-06 Thread Dan Madere
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.


Django ContentTypes required?

2020-07-06 Thread JJ Zolper
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/5f21d61e-b2d1-41e9-8e07-b7a1821d68f9o%40googlegroups.com.