Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/template/response.py
Commit message (Collapse)AuthorAgeFilesLines
* Made template response APIs enforce the use of dict and ↵Tim Graham2015-09-241-53/+2
| | | | | | backend-specific template objects. Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
* Removed current_app argument to render() and ↵Tim Graham2015-09-241-12/+3
| | | | | | TemplateResponse(). Per deprecation timeline.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-7/+7
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Moved engine-related exceptions to ↵Preston Timmons2015-05-071-5/+7
| | | | | | | | django.template.exceptions. With the introduction of multiple template engines these exceptions are no longer DTL-specific. It makes more sense for them to be moved out of DTL-related modules.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #24168 -- Allowed selecting a template engine in a ↵Aymeric Augustin2015-02-031-5/+8
| | | | | | | | | | | | few APIs. Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.
* Accounted for multiple template engines in template ↵Aymeric Augustin2015-01-121-32/+61
| | | | responses.
* Deprecated passing a Context to a generic Template.render.Aymeric Augustin2015-01-121-0/+5
| | | | | | | | | | | A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
* Deprecated current_app in TemplateResponse and ↵Aymeric Augustin2014-12-281-3/+12
| | | | render(_to_response).
* Fixed #23730 -- Moved support for SimpleCookie ↵Tim Graham2014-11-121-1/+1
| | | | | | | | HIGHEST_PROTOCOL pickling to http.cookie. This fix is necessary for Python 3.5 compatibility (refs #23763). Thanks Berker Peksag for review.
* Fixed #23789 -- TemplateResponse handles context ↵Luke Plant2014-11-101-1/+4
| | | | differently from render
* Fixed #10190 -- Made HttpResponse charset customizable.Unai Zalakain2014-08-191-4/+5
| | | | | Thanks to Simon Charette, Aymeric Augustin, and Tim Graham for reviews and contributions.
* Removed a few trailing backslashes.Aymeric Augustin2013-09-221-2/+1
| | | | We have always been at war with trailing backslashes.
* Removed 'mimetype' arguments from a few places, as per ↵Ramiro Morales2013-06-291-6/+4
| | | | | | | | deprecation TL. This includes HttpResponse and co. __init__() methods, django.shortcuts.render_to_response() and the index(), sitemap() sitemap app views.
* Fixed #19262 -- Support cookie pickling in ↵Sean Breant2012-11-091-1/+1
| | | | | | SimpleTemplateResponse Refs #15863.
* Used the decorator syntax for properties in django.httpClaude Paroz2012-08-221-7/+7
|
* [py3] Replaced basestring by six.string_types.Aymeric Augustin2012-07-221-1/+2
|
* Fixed #16519 -- Deprecated mimetype kwarg of ↵Claude Paroz2012-06-301-7/+7
| | | | | | | | | HttpResponse __init__ This keyword was already deprecated in the code (supported for backwards compatibility only), but never formally deprecated. Thanks Paul McMillan for the report and yasar11732 for the initial patch.
* Fixed #16935 - misleading message if AttributeError ↵Luke Plant2011-09-301-12/+0
| | | | | | | | | | | | | escapes during SimpleTemplateResponse.render Thanks to isagalaev for the report. As discussed on django-devs, this reverts some of the changes in [16568] i.e. the addition of `SimpleTemplateResponse.__getattr__`, because this makes it much harder to debug the common case of an AttributeError somewhere during the rendering of a SimpleTemplateResponse. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16848 - Adjusted SimpleTemplateResponse.__init__ ↵Carl Meyer2011-09-151-4/+8
| | | | | | | | | | | to be less brittle. Could have reverted r16830 instead, but HttpResponse shouldn't have to dance around and do non-obvious things to keep TemplateResponse happy, TemplateResponse should be robust against the possibility that HttpResponse.__init__ might set self.content. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16326 -- Fixed re-pickling of unpickled ↵Jannis Leidel2011-07-291-35/+41
| | | | | | TemplateResponse instances. Thanks, natrius and lrekucki. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #16004 - csrf_protect does not send cookie if view ↵Luke Plant2011-05-241-2/+5
| | | | | | | | | returns TemplateResponse The root bug was in decorator_from_middleware, and the fix also corrects bugs with gzip_page and other decorators. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15012 -- Added post-rendering callbacks to ↵Russell Keith-Magee2011-01-241-1/+47
| | | | | | TemplateResponse so that decorators (in particular, the cache decorator) can defer processing until after rendering has occurred. Thanks to Joshua Ginsberg for the draft patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #15010 -- Added current_app parameter to close gap ↵Jannis Leidel2011-01-051-2/+5
| | | | | | between TemplateResponse and render method. Thanks, acdha. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #12815 -- Added TemplateResponse, a lazy-evaluated ↵Russell Keith-Magee2010-12-071-0/+108
Response class. Thanks to Simon Willison for the original idea, and to Mikhail Korobov and Ivan Sagalaev for their assistance, including the draft patch from Mikhail. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14850 bcc190cf-cafb-0310-a4f2-bffc1f526a37