Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-18 Thread regan opere
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  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.


PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-17 Thread regan opere
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+unsubscr...@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.