Hi,

I would like to provide proper Last-Modified headers, but in general my code
uses the render_to_response shortcut. As far as I understand the code, even
though I can add a **kwargs argument to render_to_response, it won't get
added to my response object.

Is there an easy way to still achieve what I would like to without touching
the core code? Is there any chance that a patch that adds this funcionality
would be accepted?

My implementation would be to extend the render_to_response code, so that
before returning the HttpResponse object, we get over an optionally passed
kwargs['headers'] dictionary, and add all of its elements to the
HttpResponse object.

How would you achieve this?

V
--
Viktor Nagy - http://viktornagy.com
PhD student
Toulouse School of Economics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to