Rethought/django-cas-provider — pull request #1 by jamescw (2013-01-07 14:06:13+00:00)
Title: Returning TemplateResponses instead of render_to_response

TemplateResponse's allow us greater flexibility when manipulating the response returned from a view in a middleware processor for example.

They can be used as a direct swap in for render_to_response as described here in the Django documentation: https://docs.djangoproject.com/en/dev/ref/template-response/#using-templateresponse-and-simpletemplateresponse