summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
2016-07-24[1.10.x] Fixed #26938 -- Fixed invalid HTML in template postmortem on the ↵Jon Dufresne
debug page. Backport of 348cfccd9072f0e08ffe4cfb3946d1dc6a629e86 from master
2016-07-18[1.10.x] Fixed XSS in admin's add/change related popup.Tim Graham
This is a security fix.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-04-04Fixed W503 flake8 warnings.Tim Graham
2016-02-23Fixed #25670 -- Allowed dictsort to sort a list of lists.Andrew Kuchev
Thanks Tim Graham for the review.
2016-02-11Fixed #26209 -- Masked sensitive settings in debug reports regardless of case.François Freitag
2016-01-11Refs #25755 -- Unified a couple more spellings of 'website'.pp
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-10-05Fixed #25037 -- Added request.user to the debug view.John Moses
2015-09-24Removed unused views.debug.linebreak_iter() function.Tim Graham
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-04Fixed #25099 -- Fixed crash in AdminEmailHandler on DisallowedHost.Vlastimil Zíma
2015-08-08Refs #25236 -- Removed ifequal/ifnotequal usage.Tim Graham
2015-07-20Fixed #25147 -- Fixed debug view copy-paste/interactive toggle.Tim Graham
The whitespace added in 1101467ce0756272a54f4c7bc65c4c335a94111b broke the initial comparison.
2015-07-13Fixed #25099 -- Cleaned up HttpRequest representations in error reporting.Vlastimil Zíma
2015-07-13Improved whitespace in debug templates.Tim Graham
Removed extra blank lines in the template text debug template, and prevented overindentation in the HTML debug template.
2015-06-01Ref #23643 -- Added plain text report of exception chain.Tomáš Ehrlich
2015-05-29Refs #23643 -- Fixed debug view regression on Python 2.Luca Ferroni
Thanks Tomáš Ehrlich for help with the patch.
2015-05-06Fixed #24119, #24120 -- Formalized debug integration for template backends.Preston Timmons
2015-04-22Improved display of template loader postmortem on debug page.Preston Timmons
This now works for multiple Django engines and recursive loaders. Support for non-Django engines is still pending. Refs #15053.
2015-04-18Removed cases of six.iter* wrapped in a list()Curtis Maloney
There's absolutely no advantage [and a mild performance hit] to using six.iter* in these cases.
2015-03-23Fixed #24440 -- Added padding to debug view stacktrace lines.andy matthews
2015-03-20Cleaned up the template debug implementation.Preston Timmons
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-14Fixes #23643 -- Added chained exception details to debug view.Tomáš Ehrlich
2015-03-09Fixed #24455 -- Fixed crash in debug view with lazy objectsBas Peschier
2015-03-03Fixed #24399 -- Made filesystem loaders use more specific exceptions.Preston Timmons
2015-02-10Fixed a crash of the debug page.Aymeric Augustin
During the autumn DST change, the template engine would fail to convert the naive representation of now when USE_TZ = True. Passing now in UTC eliminates the issue. Thanks mbertheau and tricoder42. Refs #23714.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Caught all exceptions raised by Engine.get_default().Aymeric Augustin
In addition to ImproperlyConfigured, Engine.get_default() may also raise ImportError or other exceptions. It's better to catch all exceptions in places where the default engine isn't strictly required.
2015-01-12Made debug views not crash when there isn't a default template engine.Aymeric Augustin
2014-12-28Deprecated TEMPLATE_LOADERS.Aymeric Augustin
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-11-23Removed direct references to template-related settings.Aymeric Augustin
2014-11-23Moved template loaders management in Engine.Aymeric Augustin
Passed the engine instance to loaders. This is a prerequisite for looking up configuration on the engine instance instead of global settings. This is backwards incompatible for custom template loaders that override __init__. However the documentation doesn't talk about __init__ and the way to pass arguments to custom template loaders isn't specified. I'm considering it a private API.
2014-11-19Simplified caching of the default exception reporter filter.Aymeric Augustin
Also simplified the logic under the assumption that a false-ish object won't have an exception_reporter_filter attribute.
2014-11-16Refactored getting the list of template loaders.Aymeric Augustin
This provides the opportunity to move utility functions specific to the Django Template Language outside of django.template.loader.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-13Fixed #20368 -- Made TECHNICAL_500 more robust against bad input.Walter Doekes
This limits large variables and avoids non-utf-8 in the TECHNICAL_500 output.
2014-07-26Fixed code to solve #23070 problemHiroki KIYOHARA
Added a class to wrap callable in settings: * Not to call in the debug page (#21345). * Not to break the debug page if the callable forbidding to set attributes (#23070). Thanks @bmispelon for giving me some advice.
2014-06-30Fixed #22756 -- Added view name to technical 404 template if Http404 is raised.Julia Matsieva
Thanks Keryn Knight for the suggestion.
2014-06-24Fixed #21668 -- Return detailed error page when SuspiciousOperation is ↵Anubhav Joshi
raised and DEBUG=True Thanks GDorn and gox21 for report. Thanks Tim Graham for idea and review.
2014-06-12Prevented markup escape in 'Welcome to Django' pageClaude Paroz
Fixes a regression introduced in 5f24cf9705. Refs #22635. Thanks A.J. May for spotting the regression.
2014-05-19Fixed #22635 -- Made "It worked!" page localizable.Markus Amalthea Magnuson
2014-03-28Fixed #22306 -- Deprecated future versions of cycle and firstof template tags.Maxime Turcotte
2014-03-21Removed contrib.comments per deprecation timeline.Tim Graham
2014-02-15Corrected a pair of flake8 violationsAlex Gaynor
2014-02-15Improved fix for #18373 -- backward compatibilityGrzegorz Nosek
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404 exception, which breaks compatibility with code messing with .args[0] directly. Revert the cleanup part and simply leave the fix itself.
2014-02-15Fixed some flake8 errors from recent commits.Tim Graham
2014-02-15Fixed #18373 - improved handling of Resolver404s from viewsGrzegorz Nosek
When django.core.urlresolvers.resolve was called from a view, failed and the exception was propagated and rendered by technical_404_response, the URL mentioned on the page was the current URL instead of the URL passed to resolve(). Fixed by using the path attribute from the Resolver404 exception instead of request.path_info. Also cleaned up the exceptions to use standard named parameters instead of stuffing a dict in args[0]