Re: Combining django apps

2022-10-25 Thread Dev Hs
When register app in config right all path to the app like
“app1.app1a”
On Tue, 18 Oct 2022 at 1:02 PM Jun Tanaka  wrote:

>
> mysite/
>
> manage.py
>
> config/
>
> __init__.py
>
> settings.py
>
> urls.py
>
> wsgi.py
>
> app1/
>
> app1a/
>
> app1b/
>
> app2/
>
> app3/
>
> I would like to know how to combine  apps together just like above.  Each
> app itself  works fine when runserver. I followed some websites talking
> about this but I always get some error like ‘app1a' is not a registered
> namespace. I'm not very familiar with combining apps. I hope someone can
> tell me the simplest way to do that.
>
> Thank you.
>
> --
> 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/f4a91be8-c4a3-4fa1-9a73-bd202f1f6716n%40googlegroups.com
> .
>

-- 
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/CAFLCvssoJnPK5Hy-u2vKwdnesJMyF4Lcoij4LwrMXT23a4BAPA%40mail.gmail.com.


Re: Combining django apps

2022-10-21 Thread Mohammed Mohamed
Hello there, can we arrange Google meetings so that I can be able to learn 
from you? I'm a Python Beginner.

On Wednesday, 19 October 2022 at 07:49:41 UTC+3 eupaulo...@gmail.com wrote:

> First of all, you need to add all your apps in INSTALED APPS into the 
> project > setings.py. I have 3 apps, core, members, and home. 
>
> INSTALLED_APPS = [
>   (..)
>   'core',
>   'members',
>   'home',
>  ]
>
> Secondly, you need to create a route to each app in your project > urls.py
>
> urlpatterns = [
>   path(' ', include('home.urls')),
>   path('udemy/', include('core.urls')),
>   path('w3schools/', include('members.urls')),
>   path('c-panel/', admin.site.urls),
>  ]
>
>
> After that, each app will be self-independent I  mean with your own 
> models, templates, statics, etc. 
>
> * Of course, you will need to run state collect and migrations commands on 
> the terminal 
> ** make sure -->  ROOT_URLCONF = 'YOURPROJECT.urls' <-- project > 
> setings.py
>
> Let me show you an example 
>
>
>
>
> Em terça-feira, 18 de outubro de 2022 às 07:01:15 UTC-3, tna...@gmail.com 
> escreveu:
>
>>
>> mysite/
>>
>> manage.py
>>
>> config/
>>
>> __init__.py
>>
>> settings.py
>>
>> urls.py
>>
>> wsgi.py
>>
>> app1/
>>
>> app1a/
>>
>>   app1b/
>>
>> app2/
>>
>> app3/
>>
>> I would like to know how to combine  apps together just like above.  Each 
>> app itself  works fine when runserver. I followed some websites talking 
>> about this but I always get some error like ‘app1a' is not a registered 
>> namespace. I'm not very familiar with combining apps. I hope someone can 
>> tell me the simplest way to do that.
>>
>> Thank you.
>>
>

-- 
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/36c601a7-124b-40b9-a2b3-687cb616d719n%40googlegroups.com.


Re: Combining django apps

2022-10-20 Thread Aziz Mek
Hi,

Both are correct and lead to the same thing, however Django documentation 
seems to prefer  *odo.apps.TodoConfig*

I hope that helps

Kind regards
Aziz

On Wednesday, October 19, 2022 at 8:10:05 AM UTC+1 tna...@gmail.com wrote:

> Also, some website says something like
>
> INSTALLED_APPS = [ 'todo.apps.TodoConfig', 
>
>  
>
> You say,
>
> INSTALLED_APPS = [ 'todo', 
> I am confused. Which is proper? And the difference?  
>
>
> 2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com:
>
>> First of all, you need to add all your apps in INSTALED APPS into the 
>> project > setings.py. I have 3 apps, core, members, and home. 
>
>
>> INSTALLED_APPS = [
>>   (..)
>>   'core',
>>   'members',
>>   'home',
>>  ]
>>
>> Secondly, you need to create a route to each app in your project > urls.py
>>
>> urlpatterns = [
>>   path(' ', include('home.urls')),
>>   path('udemy/', include('core.urls')),
>>   path('w3schools/', include('members.urls')),
>>   path('c-panel/', admin.site.urls),
>>  ]
>>
>>
>> After that, each app will be self-independent I  mean with your own 
>> models, templates, statics, etc. 
>>
>> * Of course, you will need to run state collect and migrations commands 
>> on the terminal 
>> ** make sure -->  ROOT_URLCONF = 'YOURPROJECT.urls' <-- project > 
>> setings.py
>>
>> Let me show you an example 
>>
>>
>>
>>
>> Em terça-feira, 18 de outubro de 2022 às 07:01:15 UTC-3, tna...@gmail.com 
>> escreveu:
>>
>>>
>>> mysite/
>>>
>>> manage.py
>>>
>>> config/
>>>
>>> __init__.py
>>>
>>> settings.py
>>>
>>> urls.py
>>>
>>> wsgi.py
>>>
>>> app1/
>>>
>>> app1a/
>>>
>>>   app1b/
>>>
>>> app2/
>>>
>>> app3/
>>>
>>> I would like to know how to combine  apps together just like above.  
>>> Each app itself  works fine when runserver. I followed some websites 
>>> talking about this but I always get some error like ‘app1a' is not a 
>>> registered namespace. I'm not very familiar with combining apps. I hope 
>>> someone can tell me the simplest way to do that.
>>>
>>> Thank you.
>>>
>>

-- 
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/adfb2031-db86-45ab-a58e-6d07ca1b3514n%40googlegroups.com.


Re: Combining django apps

2022-10-20 Thread ASAMOAH EMMANUEL
Register all your apps in the settings.py file and ensure the namespace is
set to the app name in the urls.py in the project directory

On Tue, Oct 18, 2022 at 10:01 AM Jun Tanaka  wrote:

>
> mysite/
>
> manage.py
>
> config/
>
> __init__.py
>
> settings.py
>
> urls.py
>
> wsgi.py
>
> app1/
>
> app1a/
>
> app1b/
>
> app2/
>
> app3/
>
> I would like to know how to combine  apps together just like above.  Each
> app itself  works fine when runserver. I followed some websites talking
> about this but I always get some error like ‘app1a' is not a registered
> namespace. I'm not very familiar with combining apps. I hope someone can
> tell me the simplest way to do that.
>
> Thank you.
>
> --
> 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/f4a91be8-c4a3-4fa1-9a73-bd202f1f6716n%40googlegroups.com
> 
> .
>

-- 
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/CABFHQYwkxYCV-H4g0y3ujdgWY4CgHu0ezivht_V%2BNgkbnErJVA%40mail.gmail.com.


Re: Combining django apps

2022-10-19 Thread Jun Tanaka


Also, some website says something like

INSTALLED_APPS = [ 'todo.apps.TodoConfig', 

 

You say,

INSTALLED_APPS = [ 'todo', 
I am confused. Which is proper? And the difference?  


2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com:

> First of all, you need to add all your apps in INSTALED APPS into the 
> project > setings.py. I have 3 apps, core, members, and home. 
>
> INSTALLED_APPS = [
>   (..)
>   'core',
>   'members',
>   'home',
>  ]
>
> Secondly, you need to create a route to each app in your project > urls.py
>
> urlpatterns = [
>   path(' ', include('home.urls')),
>   path('udemy/', include('core.urls')),
>   path('w3schools/', include('members.urls')),
>   path('c-panel/', admin.site.urls),
>  ]
>
>
> After that, each app will be self-independent I  mean with your own 
> models, templates, statics, etc. 
>
> * Of course, you will need to run state collect and migrations commands on 
> the terminal 
> ** make sure -->  ROOT_URLCONF = 'YOURPROJECT.urls' <-- project > 
> setings.py
>
> Let me show you an example 
>
>
>
>
> Em terça-feira, 18 de outubro de 2022 às 07:01:15 UTC-3, tna...@gmail.com 
> escreveu:
>
>>
>> mysite/
>>
>> manage.py
>>
>> config/
>>
>> __init__.py
>>
>> settings.py
>>
>> urls.py
>>
>> wsgi.py
>>
>> app1/
>>
>> app1a/
>>
>>   app1b/
>>
>> app2/
>>
>> app3/
>>
>> I would like to know how to combine  apps together just like above.  Each 
>> app itself  works fine when runserver. I followed some websites talking 
>> about this but I always get some error like ‘app1a' is not a registered 
>> namespace. I'm not very familiar with combining apps. I hope someone can 
>> tell me the simplest way to do that.
>>
>> Thank you.
>>
>

-- 
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/c3761fa9-e7c8-484b-9d57-a2ae6ee4fcf7n%40googlegroups.com.


Re: Combining django apps

2022-10-19 Thread Jun Tanaka


Thank you for your answer. I can not see below "Let me show you an 
example". Probably, some of last sentences got cutoff. And I want to see an 
example. 

2022年10月19日水曜日 13:49:41 UTC+9 eupaulo...@gmail.com:

> First of all, you need to add all your apps in INSTALED APPS into the 
> project > setings.py. I have 3 apps, core, members, and home. 
>
> INSTALLED_APPS = [
>   (..)
>   'core',
>   'members',
>   'home',
>  ]
>
> Secondly, you need to create a route to each app in your project > urls.py
>
> urlpatterns = [
>   path(' ', include('home.urls')),
>   path('udemy/', include('core.urls')),
>   path('w3schools/', include('members.urls')),
>   path('c-panel/', admin.site.urls),
>  ]
>
>
> After that, each app will be self-independent I  mean with your own 
> models, templates, statics, etc. 
>
> * Of course, you will need to run state collect and migrations commands on 
> the terminal 
> ** make sure -->  ROOT_URLCONF = 'YOURPROJECT.urls' <-- project > 
> setings.py
>
> Let me show you an example 
>
>
>
>
> Em terça-feira, 18 de outubro de 2022 às 07:01:15 UTC-3, tna...@gmail.com 
> escreveu:
>
>>
>> mysite/
>>
>> manage.py
>>
>> config/
>>
>> __init__.py
>>
>> settings.py
>>
>> urls.py
>>
>> wsgi.py
>>
>> app1/
>>
>> app1a/
>>
>>   app1b/
>>
>> app2/
>>
>> app3/
>>
>> I would like to know how to combine  apps together just like above.  Each 
>> app itself  works fine when runserver. I followed some websites talking 
>> about this but I always get some error like ‘app1a' is not a registered 
>> namespace. I'm not very familiar with combining apps. I hope someone can 
>> tell me the simplest way to do that.
>>
>> Thank you.
>>
>

-- 
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/a4f31d27-4b2d-4efb-96c8-41b67817c0a7n%40googlegroups.com.


Re: Combining django apps

2022-10-18 Thread Paulo Andrade
First of all, you need to add all your apps in INSTALED APPS into the 
project > setings.py. I have 3 apps, core, members, and home. 

INSTALLED_APPS = [
  (..)
  'core',
  'members',
  'home',
 ]

Secondly, you need to create a route to each app in your project > urls.py

urlpatterns = [
  path(' ', include('home.urls')),
  path('udemy/', include('core.urls')),
  path('w3schools/', include('members.urls')),
  path('c-panel/', admin.site.urls),
 ]


After that, each app will be self-independent I  mean with your own models, 
templates, statics, etc. 

* Of course, you will need to run state collect and migrations commands on 
the terminal 
** make sure -->  ROOT_URLCONF = 'YOURPROJECT.urls' <-- project > setings.py

Let me show you an example 




Em terça-feira, 18 de outubro de 2022 às 07:01:15 UTC-3, tna...@gmail.com 
escreveu:

>
> mysite/
>
> manage.py
>
> config/
>
> __init__.py
>
> settings.py
>
> urls.py
>
> wsgi.py
>
> app1/
>
> app1a/
>
>   app1b/
>
> app2/
>
> app3/
>
> I would like to know how to combine  apps together just like above.  Each 
> app itself  works fine when runserver. I followed some websites talking 
> about this but I always get some error like ‘app1a' is not a registered 
> namespace. I'm not very familiar with combining apps. I hope someone can 
> tell me the simplest way to do that.
>
> Thank you.
>

-- 
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/91be7100-d094-4c22-a2c2-6d662a7208a9n%40googlegroups.com.


Re: Combining django apps

2022-10-18 Thread subin
Hi ! Thanks for making an appointment with us. We’re located at . We look
forward to seeing you then!

On Tue, Oct 18, 2022 at 11:01 AM Jun Tanaka  wrote:

>
> mysite/
>
> manage.py
>
> config/
>
> __init__.py
>
> settings.py
>
> urls.py
>
> wsgi.py
>
> app1/
>
> app1a/
>
> app1b/
>
> app2/
>
> app3/
>
> I would like to know how to combine  apps together just like above.  Each
> app itself  works fine when runserver. I followed some websites talking
> about this but I always get some error like ‘app1a' is not a registered
> namespace. I'm not very familiar with combining apps. I hope someone can
> tell me the simplest way to do that.
>
> Thank you.
>
> --
> 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/f4a91be8-c4a3-4fa1-9a73-bd202f1f6716n%40googlegroups.com
> 
> .
>

-- 
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/CAJnMy6dLWHuJqEiK%2B463ieCP0UaME_mv0_kAMgVn8UgyTt4fRQ%40mail.gmail.com.


Combining django apps

2022-10-18 Thread Jun Tanaka



mysite/

manage.py

config/

__init__.py

settings.py

urls.py

wsgi.py

app1/

app1a/

  app1b/

app2/

app3/

I would like to know how to combine  apps together just like above.  Each 
app itself  works fine when runserver. I followed some websites talking 
about this but I always get some error like ‘app1a' is not a registered 
namespace. I'm not very familiar with combining apps. I hope someone can 
tell me the simplest way to do that.

Thank you.

-- 
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/f4a91be8-c4a3-4fa1-9a73-bd202f1f6716n%40googlegroups.com.