summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
2021-03-31[3.2.x] Refs #32105 -- Moved ExceptionReporter template paths to properties.William Schwartz
Refs #32316. Backport of 7248afe12f40361870388ecdd7e0038eb0d58e47 from main
2020-11-10Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani
tracebacks.
2020-10-15Refs #31672 -- Simplified ExceptionReporter.get_traceback_frames().Chris Jerdonek
2020-10-15Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela
This allows replacement of the debugging templates without having to copy-paste the `get_traceback_html` and `get_traceback_text` functions into a subclass. Thanks to Nick Pope for review.
2020-10-12Fixed #31674 -- Fixed displaying traceback in technical 500 debug page.Hasan Ramezani
Previously, the technical 500 debug page didn't contain a traceback when the exception chain contained an exception without traceback. Thanks Chris Jerdonek for the report.
2020-09-07Fixed #31791 -- Made technical 404 debug page display the tried URL patterns ↵Jon Dufresne
for Http404.
2020-08-26Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé
non-string keys.
2020-07-13Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes
2020-06-10Fixed #31675 -- Added warning to ExceptionReporter when exception chain has ↵Hasan Ramezani
a cycle.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-04-15Fixed #31451 -- Made settings cleansing work with list and tuple settings.Ichlasul Affan
2020-01-27Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz
2020-01-16Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak
2020-01-11Removed unused ExceptionReporterFilter class.Carlton Gibson
Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593.
2020-01-10Fixed #23004 -- Added request.META filtering to SafeExceptionReporterFilter.Carlton Gibson
Co-authored-by: Ryan Castner <castner.rr@gmail.com>
2020-01-10Refs #23004 -- Allowed exception reporter filters to customize settings ↵Carlton Gibson
filtering. Thanks to Tim Graham for the original implementation idea. Co-authored-by: Daniel Maxson <dmaxson@ccpgames.com>
2019-11-12Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter.Hasan Ramezani
2019-11-12Refs #30405 -- Added ExceptionReporter._get_source().Hasan Ramezani
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-08-09Fixed #29008 -- Fixed crash of 404 debug page when URL path converter raises ↵Ngalim Siregar
Http404.
2019-04-05Refs #30324 -- Forced utf-8 encoding when loading templates for the ↵Nick Pope
technical 404 debug and congrats page.
2019-04-05Fixed #30324 -- Forced utf-8 encoding when loading the template for the ↵Nick Pope
technical 500 debug page. Regression in 50b8493. Related to ea542a9.
2019-02-06Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin
2019-02-02Fixed #29393 -- Prevented infinite loop in ↵Vinay Karanam
ExceptionReporter.get_traceback_frames().
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-08-22Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz
2018-01-03Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов
2017-12-06Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-05Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of ↵Tim Graham
technical 500 debug page. This is a security fix.
2017-08-12Fixed #28485 -- Made ExceptionReporter.get_traceback_frames() include frames ↵Martin von Gagern
without source code.
2017-08-07Fixed #28457 -- Updated the design of the 'Congrats' page for new Django ↵Timothy Allen
projects. Developed by Timothy Allen and Chad Whitman of The Wharton School with shepherding from Aymeric Augustin and Collin Anderson.
2017-06-28Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen
2017-06-05Fixed #28271 -- Added charset to technical_500_response() AJAX response.partizan
2017-04-27Refs #27795 -- Replaced many force_text() with str()Claude Paroz
Thanks Tim Graham for the review.
2017-04-15Fixed #28079 -- Restored "No POST data" (rather than an empty table) in HTML ↵Tim Graham
debug page. Regression in 7b6dccc82fa5b03cf431742c0655e5ac954e228e
2017-04-12Fixed #28007 -- Moved debug templates to the filesystemClaude Paroz
Thanks Tim Graham for the review.
2017-03-28Fixed #27987 -- Added default colors in debug view CSS.Ionuț Ciocîrlan
2017-03-03Refs #27656 -- Updated django.views docstring verbs according to PEP 257.Anton Samarchyan
2017-02-09Refs #23919 -- Removed an used block in ExceptionReporter.get_traceback_data().Tim Graham
The test from refs #20368 only runs this block on Python 2.
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-01Removed unused ExceptionReporter.format_exception() method.Tim Graham
Unused since its introduction in e7e4b8b0f774b119bc1c46a62a97e51d7c8a35e3.
2017-02-01Removed ExceptionReporter support for string exceptions.Tim Graham
Reverted refs #6423 since raising string exceptions is prohibited since Python 2.5.
2017-01-26Refs #23919, #27778 -- Removed obsolete mentions of unicode.Vytis Banaitis
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Stopped using django.utils.lru_cache().Aymeric Augustin
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.