summaryrefslogtreecommitdiff
path: root/django/views/debug.py
AgeCommit message (Collapse)Author
2025-09-26Refs #28526 -- Provided URLResolver namespace in technical 404 template.Jacob Walls
This avoids looking up the nonexistent "name" attribute on URLResolver, which logs verbosely.
2025-08-28Fixed #36532 -- Added Content Security Policy view decorators to override or ↵Rob Hudson
disable policies. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2025-07-18Fixed #36456 -- Improved content type negotiation in technical 500 error ↵IsJn-227
response.
2025-04-17Fixed #28050 -- Added template name to TemplateSyntaxError.farhan
2025-01-20Fixed #36005 -- Dropped support for Python 3.10 and 3.11.Mariusz Felisiak
2024-08-23Fixed #35703 -- Made technical_404_response() respect SCRIPT_NAME to return ↵Maarten Breddels
default_urlconf().
2024-08-01Fixed #35646 -- Extended SafeExceptionReporterFilter.hidden_settings to ↵Markus Holtermann
treat `AUTH` as a sensitive match. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-06-23Refs #31949 -- Made @sensitive_variables/sensitive_post_parameters ↵Jon Janzen
decorators to work with async functions. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-11-29Fixed #33701 -- Added fine-grained error locations to the technical 500 ↵Giebisch
debug page.
2022-11-25Fixed #33747 -- Added exception notes to the technical 500 debug page.Giebisch
2022-10-26Fixed #33606 -- Cleansed sessionid cookie in error reports.Tobias Bengfort
Co-authored-by: Simon Charette <charette.s@gmail.com>
2022-03-09Fixed #33567 -- Avoided setting default text/html content type on responses.Claude Paroz
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-01-13Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya
2022-01-13Refs #33396 -- Added django.views.debug.get_caller() hook.Hrushikesh Vaidya
2022-01-12Refs #33426 -- Simplified technical_404_response() with ↵Hrushikesh Vaidya
ResolverMatch._func_path.
2022-01-12Fixed #33433 -- Avoided unnecessary resolve() calls in technical_404_response().Hrushikesh Vaidya
Thanks Keryn Knight for the initial patch.
2022-01-08Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page.Keryn Knight
Regression in 0c0b87725bbcffca3bc3a7a2c649995695a5ae3b.
2021-09-27Refs #32355 -- Used @functools.lru_cache as a straight decorator.Mariusz Felisiak
2021-04-30Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ↵Hasan Ramezani
ExceptionReporter._get_raw_insecure_uri().
2021-04-01Fixed #32316 -- Deferred accessing __file__.William Schwartz
Deferred accessing the module-global variable __file__ because the Python import API does not guarantee it always exists—in particular, it does not exist in certain "frozen" environments. The following changes advanced this goal. Thanks to Carlton Gibson, Tom Forbes, Mariusz Felisiak, and Shreyas Ravi for review and feedback.
2021-03-31Refs #32105 -- Moved ExceptionReporter template paths to properties.William Schwartz
Refs #32316.
2021-03-30Refs #32260 -- Made admindocs and technical 404 debug page use ↵Adam Johnson
view_func.view_class. Internals of admindocs and technical 404 debug page should use the view_class attribute and do not rely on __name__.
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