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
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.
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
3 matches
Mail list logo