You need to give the django apps you created unique names (try to see them
as separate entities), in your case this would be 'core' and 'store', then
you need to add them to the INSTALED_APPS list like so in the settings file:
[...,
'core.apps.CoreConfig',
'store.apps.StoreConfig',
]



On Wed, Oct 19, 2022 at 8:29 AM regan opere <reganop...@gmail.com> wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
>     'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere <regan...@gmail.com> wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>>     'django.contrib.admin',
>>>     'django.contrib.auth',
>>>     'django.contrib.contenttypes',
>>>     'django.contrib.sessions',
>>>     'django.contrib.messages',
>>>     'django.contrib.staticfiles',
>>>
>>>     'apps.core.apps',
>>>
>>>     'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>>     default_auto_field = 'django.db.models.BigAutoField'
>>>     name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>>     default_auto_field = 'django.db.models.BigAutoField'
>>>     name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAOj59W0fjZbkGpGvrSyFiCwAAJrt6%3D_6d1zb1G759J9igyu4aA%40mail.gmail.com.

Reply via email to