summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
2017-02-01[1.11.x] Removed ExceptionReporter support for string exceptions.Tim Graham
Reverted refs #6423 since raising string exceptions is prohibited since Python 2.5. Backport of 0205e04ce7a554a7b9b27b412288cc6a0e75e48f from master
2016-12-13Removed an unnecessary, discouraging sentence on the "It worked!" page.Merrin Macleod
2016-12-06Fixed #27567 -- Fixed crash in the debug view when request.user errors.Andreas Pelme
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-10-27Fixed #27373 -- Corrected 404 debug page message for an empty request path.Mariusz Felisiak
2016-09-17Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6.Tim Graham
http://bugs.python.org/issue27364
2016-09-07Fixed #27191 -- Fixed debug view crash for requests with 'items' in ↵Anatoly Burov
GET/POST/COOKIES/FILES.
2016-09-03Replaced smart_* by force_* calls whenever possibleClaude Paroz
The smart_* version should only be used when a lazy string should keep its lazy status.
2016-07-24Fixed #26938 -- Fixed invalid HTML in template postmortem on the debug page.Jon Dufresne
2016-07-18Fixed 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.