Re: Django's decoupling apps but template should couple them together, right?

2008-11-04 Thread Dj Gilcrease
The point of decoupling the apps is so that you can share them with others without having to give them all of your site, and it make it ALOT easier to maintain since if you want to make changes to the way the menu works you dont have to read though hundred of lines of code dealing with the rest

Re: Django's decoupling apps but template should couple them together, right?

2008-11-04 Thread ilmarik
Thank you for all your elaborated answers However I still don't see the point to have decouped apps in my project. Web page mainly is a program for serving some text or media or for saving some user data under the hood. Having an app for particular business logic AND another pool of views, tags

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread Steve Holden
bruno desthuilliers wrote: > > On 3 nov, 03:56, Steve Holden <[EMAIL PROTECTED]> wrote: > (snip) > >> You might also want to look into ContextManager objects, which are a way >> of providing information to all pages. >> > > I assume you meant 'Context processors' ?-) > > Are you some

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread bruno desthuilliers
On 3 nov, 03:56, Steve Holden <[EMAIL PROTECTED]> wrote: (snip) > You might also want to look into ContextManager objects, which are a way > of providing information to all pages. I assume you meant 'Context processors' ?-) --~--~-~--~~~---~--~~ You received

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread Dj Gilcrease
On Mon, Nov 3, 2008 at 2:48 AM, ilmarik <[EMAIL PROTECTED]> wrote: > I've got controllers made as logical apps (controllers named > particularly) and whenever I need f.e. menu inside base layout, I > simply put {#menus/show/1} which means - return here compiled > controllers(menus) method(show)

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread Benjamin Buch
Am 03.11.2008 um 02:33 schrieb ilmarik: > It's just simple amazing that I waste another night to figure out how > to glue two and more apps together inside one template. > I read about custom tags and I thing it isn't (or at least it > shouldn't be) the way of doing it. too much fuss imho. > >

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread ilmarik
> A slightly fuller description of your intended page structure might let > people provide more accurate answers to your needs. Let http://pow.dzierzoniow.pl be my fuller explanation. This page is my old project written in php on Kohana framework. There is one 'app' used to generate both menus

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Dj Gilcrease
Yes exactly. http://dpaste.com/hold/88396/ is the inclusion tag that I use for my navigation menu @ http://www.gustafsonandassociates.com/ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Sun, Nov 2, 2008 at 6:57 PM, ilmarik <[EMAIL PROTECTED]> wrote: > > are you saing this: >

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Steve Holden
ilmarik wrote: > It's just simple amazing that I waste another night to figure out how > to glue two and more apps together inside one template. > I read about custom tags and I thing it isn't (or at least it > shouldn't be) the way of doing it. too much fuss imho. > > Example: > I have home

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread ilmarik
are you saing this: http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#inclusion-tags is an explanation to my question ? If yes, many thanks to you and... silly me. if not, could you point me some solution explained in detail? --~--~-~--~~~---~--~~

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Dj Gilcrease
Once you get each working individually, I would make inclusion tags for the items that will be on every page (Menu, NewsList, Footer, Survey). The contents in the middle is what is shown by a view (At least in my setup) Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com

Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread ilmarik
It's just simple amazing that I waste another night to figure out how to glue two and more apps together inside one template. I read about custom tags and I thing it isn't (or at least it shouldn't be) the way of doing it. too much fuss imho. Example: I have home page with menu on one side, news