Re: Is there a setting which will provide RequestContext to each view autmatically?

2007-12-16 Thread SmileyChris
from django.views.generic.simple import direct_to_template view: return direct_to_template(request, 'template.htm', extra_context) On top of that, use a context_processor (follow alex's link) --~--~-~--~~~---~--~~ You received this message because you are

Re: Is there a setting which will provide RequestContext to each view autmatically?

2007-12-16 Thread Alex Koshelev
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext On 16 дек, 20:41, shabda <[EMAIL PROTECTED]> wrote: > Since I need my logged in user to be available to each template, I > need to go and add context_instance=RequestContext(request) to each > view.

Is there a setting which will provide RequestContext to each view autmatically?

2007-12-16 Thread shabda
Since I need my logged in user to be available to each template, I need to go and add context_instance=RequestContext(request) to each view. Is there any setting which can make RequestContext available to each view? A related question is, I have some objects I need to make available to each