Thursday, May 31, 2012

Re: App inside another app or nesting in django apps

1.6.2012 9:16, Derek kirjoitti:
> And the Zen of Python?
>
> "Flat is better than nested"

But don't forget, again Zen of Python:

"Namespaces are one honking great idea -- let's do more of those!"


>
> On Jun 1, 8:10 am, Jani Tiainen<rede...@gmail.com> wrote:
>> 31.5.2012 19:22, Kurtis Mullins kirjoitti:
>>
>>> Sure. They're just Python modules. All you need to do is:
>>
>>> 1. Include the files: __init__.py and models.py
>>> 2. Add the application to your settings.py, for example: myproject.myapp.subapp
>>
>>> It *should* work, although I haven't personally tested it yet.
>>
>>> On Thu, May 31, 2012 at 7:46 AM, vijay shanker<vshanker...@gmail.com> wrote:
>>>> can we write one app inside some another django-app .
>>>> please suggest any reference or articles
>>
>> It works perfectly. We've been using it in our environment for a good while.
>>
>> There lies only one caveat - all appnames still must be unique and as
>> known app name is last part of module hierarchy.
>>
>> So you can't have two conflicting apps:
>>
>> myapp.subapp<-- appname is subapp
>> myotherapp.subapp<-- appname is subapp
>>
>> --
>> Jani Tiainen
>>
>> - Well planned is half done and a half done has been sufficient before...
>


--
Jani Tiainen

- Well planned is half done and a half done has been sufficient before...

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment