Re: Master Page Code

2007-09-12 Thread Collin Grady
Another option is to use template tags. Different apps can provide template tags that can be embedded in other pages. Specifically, inclusion tags basically render a stub template with their own context, so something like a polls app, for example, could render a poll form wherever you do {% show_

Re: Master Page Code

2007-09-12 Thread MikeHowarth
Have a look at template inheritance http://www.djangoproject.com/documentation/templates/#template-inheritance This may give you more of any idea of how to structure your main template. [EMAIL PROTECTED] wrote: > I'm a web developer and I'm developing my first application using > Django. I'm

Re: Master Page Code

2007-09-12 Thread Iapain
Extend your base(master) template and write a context processor for your common data, or pass context varibales into your template. But I'd suggest you to use context processors. On Sep 12, 7:35 pm, [EMAIL PROTECTED] wrote: > I'm a web developer and I'm developing my first application using > Dja

Master Page Code

2007-09-12 Thread weissblitz
I'm a web developer and I'm developing my first application using Django. I'm very impressed with the MVC concept in Django. I'm addressing this group for some advice on how to organize my code for this web application. Basically, my application will have the typical master page that will conta