On Thu, Jul 17, 2008 at 6:23 AM, 3xM <[EMAIL PROTECTED]> wrote: [...] > I am making a generic system for generating some playlists. Playlists > for most channels look exactly the same, but some has small > differences in how it should appear (e.g. they should not include a > thumbnail for the video, or maybe the order of the data presented > should be slightly different). > > I'm using a set of templates, each one for each part of the playlist, > making it easy - in theory - to alter small parts of the playlist for > each channel, simply by adding another template directory for the > specific channel.
Have you seen the section on loading templates in the documentation? It contains a tip that describes how you can use select_template to nicely deal with this type of situation: http://www.djangoproject.com/documentation/templates_python/#loading-templates Arien --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---