django1/django/utils
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
..
translation Cleaned up the template debug implementation. 2015-03-20 08:58:07 -04:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
_os.py Removed rmtree_errorhandler. 2015-02-22 23:09:42 +01:00
archive.py Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
autoreload.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
baseconv.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
cache.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
crypto.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datastructures.py Removed django.utils.datastructures.SortedDict per deprecation timeline. 2015-01-17 08:40:23 -05:00
dateformat.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dateparse.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dates.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datetime_safe.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deconstruct.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
decorators.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deprecation.py Advanced deprecation warnings for Django 1.9. 2015-01-19 12:22:41 -05:00
duration.py Fixed #2443 -- Added DurationField. 2014-12-20 18:28:29 +00:00
encoding.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
feedgenerator.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
formats.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
functional.py Fixed #23838 -- added missing `__iter__` to LazyObject 2015-03-08 15:42:23 +01:00
html.py Fixed an infinite loop possibility in strip_tags(). 2015-03-18 19:20:07 -04:00
html_parser.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
http.py Made is_safe_url() reject URLs that start with control characters. 2015-03-18 19:20:07 -04:00
ipv6.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
itercompat.py Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -04:00
jslex.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
log.py Removed old import aliases. 2015-02-05 19:37:01 -05:00
lorem_ipsum.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
lru_cache.py Fixed typo in lru_cache.py; refs #21351. 2013-11-12 18:45:35 +01:00
module_loading.py Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00
numberformat.py Fixed #24382 -- Allowed unicode chars inside formatted numbers 2015-03-09 18:55:28 +01:00
regex_helper.py Fixed typos in code comments. 2015-01-20 12:18:03 -05:00
safestring.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
six.py Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
synch.py Removed threading fallback imports. 2015-01-28 10:23:25 -05:00
termcolors.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
text.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
timesince.py Moved definition of chunks out of timesince function. 2015-03-04 22:30:14 +01:00
timezone.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
tree.py Removed legacy ORM lookup support per deprecation timeline; refs #16187. 2015-01-19 11:11:30 -05:00
version.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
xmlutils.py More attacking E302 violators 2013-11-02 13:12:09 -07:00