Re: Accessing a session within template context processors

2006-02-24 Thread olive
Hi Ross, this is the way (simplified) I do with a generic view: Url: (r'^app/$', 'project.app.views.index'), View: --- from django.views.generic import list_detail def index(request): return list_detail.object_list(request, 'app', 'module', extra_context = {"region": request.s

Accessing a session within template context processors

2006-02-23 Thread Ross Poulton
Hi all, In my Django app I've got a few entries in TEMPLATE_CONTEXT_PROCESSORS that let me set a few context variables that are common to every page. I do this as some of my pages are generic views, some are custom views, and some are just plain flatpages. It's the easiest way for me to set varia