django1/django/template
Preston Timmons 55f12f8709 Cleaned up the template debug implementation.
This patch does three major things:

* Merges the django.template.debug implementation into django.template.base.

* Simplifies the debug implementation.

  The old implementation copied debug information to every token and node.
  The django_template_source attribute was set in multiple places, some
  quite hacky, like django.template.defaulttags.ForNode.

  Debug information is now annotated in two high-level places:

  * Template.compile_nodelist for errors during parsing
  * Node.render_annotated for errors during rendering

  These were chosen because they have access to the template and context
  as well as to all exceptions that happen during either the parse or
  render phase.

* Moves the contextual line traceback information creation from
  django.views.debug into django.template.base.Template. The debug views now
  only deal with the presentation of the debug information.
2015-03-20 08:58:07 -04:00
..
backends Deprecated TEMPLATE_DEBUG setting. 2015-02-15 20:47:04 +01:00
loaders Fixed #24399 -- Made filesystem loaders use more specific exceptions. 2015-03-03 21:20:46 +01:00
__init__.py Fixed E265 comment style 2015-02-06 09:30:35 -05:00
base.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
context.py Fixed #24493 -- Added BaseContext.setdefault() 2015-03-16 13:13:02 -04:00
context_processors.py Simplified the lazy CSRF token implementation in csrf context processor. 2015-02-08 15:02:43 -05:00
defaultfilters.py Fixed typo in escape_filter() docstring. 2015-03-19 07:21:38 -04:00
defaulttags.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
engine.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
loader.py Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
loader_tags.py Set context.template instead of context.engine while rendering. 2015-02-19 22:08:11 +01:00
response.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
smartif.py Fixed #23913 -- Deprecated the `=` comparison in `if` template tag. 2015-01-11 15:21:01 -05:00
utils.py Refs #24324 -- Fixed get_app_template_dirs() UnicodeDecodeError on Python 2. 2015-02-17 08:19:58 -05:00