On Sat, Jul 21, 2012 at 3:32 AM, Nicolas Ardison <nicolas....@gmail.com> wrote:
> Hello, i was reading the Django documentation, and i have the following
> trouble that i'm not sure if django can solve it. I have a application
> called "userArea" and i want to extend that app with more app isolated from
> the "main" apps.
>
> [DjangoProject]
>
> [APP1]
>
> [subAPP1]
>
> [subAPP2]
>
> [APP2]
>
>
> Could i do something like this? anyone know where i can start reading about
> this.

A Django app is just a Python module. That means you can nest them
however you like. As long as you provide a fully qualified path the
the leaf node of your nesting tree, you can use an app wherever it
occurs in your Python module namespace.

However, you don't get any Django benefits out of nesting like this. A
Django app is a single module. Nesting a module inside another doesn't
mean that the Django app 'inherits' anything from its 'parent', or
anything like that. The only benefit would be organisational -- i.e.,
keeping all the code in a hierarchy so it's easier to find it later.

Yours,
Russ Magee %-)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to