On 5/8/06, Michael Radziej <[EMAIL PROTECTED]> wrote:
> Wade Leftwich wrote:
> > I work for a magazine publishing company that has 150 websites for 75
> > different mags. Quite often we create an application and present the
> > same data structures via 50 different HTML layouts.
> >
> > We've had a lot of success using Zope thru-the-web (TTW) templates for
> > this kind of thing, so people with titles like Web Producer can edit
> > templates through a web interface, and we can use the content database
> > for managing the templates.
> >
> > Has this approach -- putting templates in the DB -- been tried with Django?
>
> Since the templates are nicely decoupled, you only need to write a
> TemplateLoader that loads templates from the database. This is not
> particulary difficult.

In fact, it's already been done:

https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/file/stuff/trunk/dbtemplate/loader.py

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to