Re: add RequestContext automatically to each render_to_response call

2008-03-10 Thread Webchemist
On 10 мар, 11:28, Julian <[EMAIL PROTECTED]> wrote: > hi, > > I've been writing a django-application and now I need the > RequestContext for some new features. I don't want to add > context_instance=RequestContext(request) to each render_to_response > call manually in my views.py. > > How can I

Re: add RequestContext automatically to each render_to_response call

2008-03-10 Thread Nathaniel Whiteinge
On Mar 10, 3:28 am, Julian <[EMAIL PROTECTED]> wrote: > def render_to_response(*args, **kwargs): > kwargs['context_instance'] = RequestContext(request) > return _render_to_response(*args, **kwargs) That's exactly how Snippet #3 [1] does it. I personally prefer using the built-in

add RequestContext automatically to each render_to_response call

2008-03-10 Thread Julian
hi, I've been writing a django-application and now I need the RequestContext for some new features. I don't want to add context_instance=RequestContext(request) to each render_to_response call manually in my views.py. How can I can I solve my problem? I could do this with retrieving the