Re: Project organization and decoupling

2007-01-18 Thread Michel Thadeu Sabchuk
Hi Guillermo! But what would happen in this case if two sites use very different templates for the same app? My templates used to have the same skeleton, the diference could be the base_site.tmpl, I can replace the base_site.tmpl on the project/templates/appname, I can use stylesheets to defi

Re: Project organization and decoupling

2007-01-17 Thread Guillermo Fernandez Castellanos
I place my templates inside the "app_name/templates/app_name" directory. It seems template search path look for the template on this directory first. So, to decouple the app, templates should be inside it I think. But what would happen in this case if two sites use very different templates for

Re: Project organization and decoupling

2007-01-17 Thread Michel Thadeu Sabchuk
Hi, Yeah. And conversely, it's weird that in other places django smooshes together what ought to be separate namespaces. For example, a template can refer to the templatetags of any app without qualification. Is there even a way to add qualification to disambiguate? If I have two apps with

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
"Doug Van Horn" <[EMAIL PROTECTED]> writes: You would put parent_folder and parent_folder/spam_website into your python path. So when you need a model from the foo application, you do: from foo.models import Eggs and if you need something from the settings module in the project, you do:

Re: Project organization and decoupling

2007-01-17 Thread David Abrahams
Stefan Foulis <[EMAIL PROTECTED]> writes: On Jan 16, 2007, at 17:52, David Abrahams wrote: For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I

Re: Project organization and decoupling

2007-01-16 Thread Doug Van Horn
David Abrahams wrote: ...One problem is that the name of the Django project folder (and thus root module) always seems to creep into the code in the app-specific directories. IANADE (django-expert), but from what I've gleaned you can put the path of each individual application into the python

Re: Project organization and decoupling

2007-01-16 Thread Stefan Foulis
On Jan 16, 2007, at 17:52, David Abrahams wrote: For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I can find doesn't really give any clues abou

Project organization and decoupling

2007-01-16 Thread David Abrahams
For me, Django doesn't seem to be delivering on its promise to allow me to build a collection of apps and organize them in different combinations into multiple Django projects, and the documentation I can find doesn't really give any clues about best practices for project organization. One prob