you might want to check out hugo's dbtemplate loader (which I updated to work with the current trunk) http://svn.zyons.python-hosting.com/trunk/zilbo/common/dbloader/
that way you can store the templates themselves in a database, which might make life a bit more easier. regards Ian On 22/08/2006, at 3:21 PM, Bryan Chow wrote: > > 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 > -- Ian Holsman [EMAIL PROTECTED] http://garden-gossip.com/ -- what's in your garden? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---