On Tuesday 16 May 2006 22:24, Jay Parlar wrote: > It feels like I should be able to define a template just for the > sidebar, and insert the content of that template into whatever > template is being rendered. I guess that the 'include' tag would do > that, but then I'd need to explicitly pass the required sidebar > context into every template, right?
You might find the TEMPLATE_CONTEXT_PROCESSORS setting useful: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext Using this you won't have to explicitly pass the context vars every time. Luke -- OSBORN'S LAW Variables won't, constants aren't. Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---