django1/django/template
Aymeric Augustin 7331788300 Avoided rewrapping Contexts in render_to_response.
This change preserves backwards-compatibility for a very common misuse
of render_to_response which even occurred in the official documentation.

It fixes that misuse wherever it happened in the code base and docs.

Context.__init__ is documented as accepting a dict and nothing else.
Since Context is dict-like, Context(Context({})) could work to some
extent. However, things get complicated with RequestContext and that
gets in the way of refactoring the template engine. This is the real
rationale for this change.
2014-11-22 17:58:38 +01:00
..
loaders Removed support for function-based template loaders. 2014-11-16 22:18:33 +01:00
__init__.py Fixed comment typo in django/template/__init__.py 2014-10-04 08:00:00 -04:00
base.py Simplified caching of templatetags modules. 2014-11-19 21:35:39 +01:00
context.py Simplified caching of template context processors. 2014-11-19 21:35:39 +01:00
debug.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
defaultfilters.py Fixed #23558 -- documented slugify limitations 2014-10-30 09:02:04 -04:00
defaulttags.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
loader.py Avoided rewrapping Contexts in render_to_response. 2014-11-22 17:58:38 +01:00
loader_tags.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
response.py Fixed #23730 -- Moved support for SimpleCookie HIGHEST_PROTOCOL pickling to http.cookie. 2014-11-12 19:04:45 +01:00
smartif.py Fixed all E226 violations 2013-11-03 10:08:55 -08:00
utils.py Refactored listing template subdirectories in apps. 2014-11-16 21:28:43 +01:00