e.g. `HttpResponse('content', headers={'X-Foo': 'aaa'})`
I think it also makes sense to add this to `django.shortcuts.render`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32002>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Tom Carrick
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32002#comment:1>
* type: Uncategorized => New feature
--
Ticket URL: <https://code.djangoproject.com/ticket/32002#comment:2>
* stage: Unreviewed => Accepted
Comment:
Yes, as per discussion, certainly for the main feature.
> I think it also makes sense to add this to django.shortcuts.render.
I'm initially sceptical about this. I think we should be cautious about
adding extra parameters to shortcuts.
My inclination would be towards saying, "Either adjust the response once
you have it, or don't use `render`" if folks need more than it currently
offers. (Note: "...initially sceptical...".)
--
Ticket URL: <https://code.djangoproject.com/ticket/32002#comment:3>
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32002#comment:7>