mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +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. |
||
---|---|---|
.. | ||
eggs | ||
filter_tests | ||
jinja2/template_tests | ||
other_templates | ||
syntax_tests | ||
templates | ||
templatetags | ||
__init__.py | ||
alternate_urls.py | ||
test_callables.py | ||
test_context.py | ||
test_custom.py | ||
test_engine.py | ||
test_loaders.py | ||
test_nodelist.py | ||
test_parser.py | ||
test_response.py | ||
test_smartif.py | ||
test_unicode.py | ||
tests.py | ||
urls.py | ||
utils.py | ||
views.py |