mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +00:00
55f12f8709
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. |
||
---|---|---|
.. | ||
__init__.py | ||
test_autoescape.py | ||
test_basic.py | ||
test_builtins.py | ||
test_cache.py | ||
test_comment.py | ||
test_cycle.py | ||
test_exceptions.py | ||
test_extends.py | ||
test_filter_syntax.py | ||
test_filter_tag.py | ||
test_firstof.py | ||
test_for.py | ||
test_i18n.py | ||
test_if_changed.py | ||
test_if_equal.py | ||
test_if.py | ||
test_include.py | ||
test_invalid_string.py | ||
test_list_index.py | ||
test_load.py | ||
test_lorem.py | ||
test_multiline.py | ||
test_named_endblock.py | ||
test_now.py | ||
test_numpy.py | ||
test_regroup.py | ||
test_setup.py | ||
test_simple_tag.py | ||
test_spaceless.py | ||
test_ssi.py | ||
test_static.py | ||
test_template_tag.py | ||
test_url.py | ||
test_verbatim.py | ||
test_width_ratio.py | ||
test_with.py |