Unclear why shortcut function "render" can not return TemplateResponse object
|Patch needs improvement:
The reason is - apparently - that this is pointless as TemplateResponse has a constructor with a syntax equivalently convenient as render().
I have created a pull request and I suggest to update the documentation accordingly. I was confused by the fact that TemplateResponse is not even mentioned in the shortcut section, although using it should be a rather common thing. It gives the impression that TemplateResponse is a "2nd class citizen".
Here's a link to the pull request: https://github.com/django/django/pull/2053