Re: Render_to_response and varying the headers

2007-07-01 Thread Jeremy Dunck
On 7/1/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > for header in headers: > f[header]=headers[header] Sorry, that should be this: for header in headers: r[header]=headers[header] --~--~-~--~~~---~--~~ You received this message because you

Re: Render_to_response and varying the headers

2007-07-01 Thread Jeremy Dunck
On 7/1/07, Merric Mercer <[EMAIL PROTECTED]> wrote: > I want to change the Cache-Control on the HTTP header. Can anybody > advise how I do this. Currently my view returns > a render_to_response like so:- > > return render_to_response(template_name,{'code': code > },context_instance=RequestContex

Render_to_response and varying the headers

2007-07-01 Thread Merric Mercer
I want to change the Cache-Control on the HTTP header. Can anybody advise how I do this. Currently my view returns a render_to_response like so:- return render_to_response(template_name,{'code': code },context_instance=RequestContext(request)) Thanks MerMer --~--~-~--~~