Re: Passing RequestContext as dict vs. context_instance=RequestContext

2010-02-27 Thread Jesaja Everling
Hi Bruno, Hi Alex, thank you very much for your helpful responses. I will do as you suggested and use RequestContext as it is supposed to be used or via Alex' generic view trick. Best Regards, Jesaja Everling On Feb 25, 3:27 pm, Alex Robbins wrote: > If you get tired of forgetting to add theRe

Re: Passing RequestContext as dict vs. context_instance=RequestContext

2010-02-25 Thread Alex Robbins
If you get tired of forgetting to add the RequestContext you can use direct_to_template[1] instead. (I almost always forget it the first time) It is almost exactly like render_to_response, you'd use it like this: def index(request): return direct_to_template(request, 'index.html', { '

Re: Passing RequestContext as dict vs. context_instance=RequestContext

2010-02-24 Thread bruno desthuilliers
In Feb 24, 1:00 pm, Jesaja Everling wrote: > Hi all! > > Is there any difference between these two ways of using > RequestContext? > I'm asking because I usually use the first approach, but I want to > make sure that there are no subtle differences. > > 1) > def index(request): >     return render

Passing RequestContext as dict vs. context_instance=RequestContext

2010-02-24 Thread Jesaja Everling
Hi all! Is there any difference between these two ways of using RequestContext? I'm asking because I usually use the first approach, but I want to make sure that there are no subtle differences. 1) def index(request): return render_to_response('index.html', Reque