On 12/31/05, Michael Hipp <[EMAIL PROTECTED]> wrote: > I'm thinking of the example where I have things that I want to appear around > the perimeter of every page on my site representing the output of numerous > independent apps. This would seem to leave me with two choices:
Try writing template tags for your other applications; for example, say you're a web designer and you have a site with two apps: a weblog and a portfolio, and you want to show a list of the five latest weblog entries on every page, even pages in the portfolio. You could write massively complicated views, yes, or you could write a template tag in your weblog application, and use it in all your page templates. Template tags can do a lot of the same things views can, including fetching things from the database, so this would probably be your best solution. See the template tags documentation for more on how to write your own tags: http://www.djangoproject.com/documentation/templates_python/ -- "May the forces of evil become confused on the way to your house." -- George Carlin

