Hi Sean, No worries, glad to hear that you find TemplatePages useful :)
To answer your question, you can write a custom inclusion tag to insert snippets of dynamic content into your templates. http://www.djangoproject.com/documentation/templates_python/#inclusion-tags Alternately, you could use a custom template processor to make variables available to your templates, and handle the rendering in the templates instead. http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors Check out the SiteRoot context processor in verdjnlib for a working example of a custom context processor. http://www.verdjn.com/wiki/Siteroot Cheers, Bryan On 8/21/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > Hi Brian, > > I also owe you a big thanks :-) > > I hope Adrian and friends will consider rolling this or something > like it into the django core. We really need a nice clean way to > serve up static files within the context of a django website. > > If you consider that people me tend to build out the static site > first, then add the dynamic bits later, it only makes sense to build > in functionality for static pages. > > One quick question: > > What if I have a bunch of static pages but they all include a bit of > dynamic content in the sidebar (pulled from the database)? How can I > include that without writing a view method for every page? > > Cheers, > Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---