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
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', {
'
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
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
4 matches
Mail list logo