On 30 May 2013 10:20, Jorge C. Leitão <[email protected]> wrote: > > On Thursday, May 30, 2013 7:54:40 AM UTC+2, Shai Berger wrote: >> > > Why python allows nested apps?
Python allows nested *modules* because namespaces are good. Also because without it you would have to wither write every module in a single file or invent some weird conventions. > What would be the reason for a developer to nest apps? For Python modules, plenty. For Django apps? I don't really see a one except for the sake of the namespace itself like django.contrib. But in this case django.contrib is not an application itself, it's more of a namespace package as defined in PEP 420. > should django allow this? Why it should not ? > why should django allow this? Because we're all consenting adults and you're free do to whatever you want. Django documents what is possible and some major pitfalls. There is no gain in *disallowing* this. Personally I wouldn't use this as it's counter-intuitive and works in exact opposite to Python's import mechanism which by default does an absolute search (since 3.x). Regards, Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
