summaryrefslogtreecommitdiff
path: root/django/views/debug.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #33701 -- Added fine-grained error locations to the technical 500 ↵Giebisch2022-11-291-1/+22
| | | | debug page.
* Fixed #33747 -- Added exception notes to the technical 500 debug page.Giebisch2022-11-251-0/+2
|
* Fixed #33606 -- Cleansed sessionid cookie in error reports.Tobias Bengfort2022-10-261-6/+17
| | | | Co-authored-by: Simon Charette <charette.s@gmail.com>
* Fixed #33567 -- Avoided setting default text/html content type on responses.Claude Paroz2022-03-091-3/+3
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-129/+167
|
* Fixed #33396 -- Added view name to technical 500 debug page.Hrushikesh Vaidya2022-01-131-0/+1
|
* Refs #33396 -- Added django.views.debug.get_caller() hook.Hrushikesh Vaidya2022-01-131-8/+11
|
* Refs #33426 -- Simplified technical_404_response() with ↵Hrushikesh Vaidya2022-01-121-16/+1
| | | | ResolverMatch._func_path.
* Fixed #33433 -- Avoided unnecessary resolve() calls in technical_404_response().Hrushikesh Vaidya2022-01-121-5/+7
| | | | Thanks Keryn Knight for the initial patch.
* Fixed #33425 -- Fixed view name for CBVs on technical 404 debug page.Keryn Knight2022-01-081-2/+3
| | | | Regression in 0c0b87725bbcffca3bc3a7a2c649995695a5ae3b.
* Refs #32355 -- Used @functools.lru_cache as a straight decorator.Mariusz Felisiak2021-09-271-1/+1
|
* Fixed #32698 -- Moved HttpRequest.get_raw_uri() to ↵Hasan Ramezani2021-04-301-0/+13
| | | | ExceptionReporter._get_raw_insecure_uri().
* Fixed #32316 -- Deferred accessing __file__.William Schwartz2021-04-011-5/+13
| | | | | | | | | | 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.
* Refs #32105 -- Moved ExceptionReporter template paths to properties.William Schwartz2021-03-311-2/+8
| | | | Refs #32316.
* Refs #32260 -- Made admindocs and technical 404 debug page use ↵Adam Johnson2021-03-301-1/+3
| | | | | | | view_func.view_class. Internals of admindocs and technical 404 debug page should use the view_class attribute and do not rely on __name__.
* Refs #31672 -- Made technical 500 debug page include exceptions without ↵Hasan Ramezani2020-11-101-1/+7
| | | | tracebacks.
* Refs #31672 -- Simplified ExceptionReporter.get_traceback_frames().Chris Jerdonek2020-10-151-6/+7
|
* Fixed #32105 -- Added template paths as ExceptionReporter class attributes.Aarni Koskela2020-10-151-2/+5
| | | | | | | | 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.
* Fixed #31674 -- Fixed displaying traceback in technical 500 debug page.Hasan Ramezani2020-10-121-21/+23
| | | | | | | 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.
* Fixed #31791 -- Made technical 404 debug page display the tried URL patterns ↵Jon Dufresne2020-09-071-1/+4
| | | | for Http404.
* Fixed #31942 -- Made settings cleansing work with dictionary settings with ↵Jeremy Lainé2020-08-261-11/+12
| | | | non-string keys.
* Fixed #31674 -- Made technical 500 debug page respect __suppress_context__.Tom Forbes2020-07-131-1/+2
|
* Fixed #31675 -- Added warning to ExceptionReporter when exception chain has ↵Hasan Ramezani2020-06-101-0/+10
| | | | a cycle.
* Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne2020-05-111-1/+1
| | | | | The method has been available since Python 3.6. The shorter syntax is also marginally faster.
* Fixed #31451 -- Made settings cleansing work with list and tuple settings.Ichlasul Affan2020-04-151-0/+4
|
* Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz2020-01-271-4/+4
|
* Fixed #30752 -- Allowed using ExceptionReporter subclasses in error reports.Pavel Lysak2020-01-161-1/+6
|
* Removed unused ExceptionReporterFilter class.Carlton Gibson2020-01-111-17/+1
| | | | Unused since 8f8c54f70bfa3aa8e311514297f1eeded2c32593.
* Fixed #23004 -- Added request.META filtering to SafeExceptionReporterFilter.Carlton Gibson2020-01-101-0/+9
| | | | Co-authored-by: Ryan Castner <castner.rr@gmail.com>
* Refs #23004 -- Allowed exception reporter filters to customize settings ↵Carlton Gibson2020-01-101-49/+44
| | | | | | | | filtering. Thanks to Tim Graham for the original implementation idea. Co-authored-by: Daniel Maxson <dmaxson@ccpgames.com>
* Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter.Hasan Ramezani2019-11-121-4/+6
|
* Refs #30405 -- Added ExceptionReporter._get_source().Hasan Ramezani2019-11-121-5/+9
|
* Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani2019-10-291-1/+2
|
* Fixed #29008 -- Fixed crash of 404 debug page when URL path converter raises ↵Ngalim Siregar2019-08-091-3/+3
| | | | Http404.
* Refs #30324 -- Forced utf-8 encoding when loading templates for the ↵Nick Pope2019-04-051-2/+2
| | | | technical 404 debug and congrats page.
* Fixed #30324 -- Forced utf-8 encoding when loading the template for the ↵Nick Pope2019-04-051-2/+2
| | | | | | | technical 500 debug page. Regression in 50b8493. Related to ea542a9.
* Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin2019-02-061-2/+2
|
* Fixed #29393 -- Prevented infinite loop in ↵Vinay Karanam2019-02-021-0/+3
| | | | ExceptionReporter.get_traceback_frames().
* Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne2019-01-281-1/+1
| | | | Used more specific errors (e.g. FileExistsError) as appropriate.
* Refs #29784 -- Switched to https:// links where available.Jon Dufresne2018-09-261-1/+1
|
* Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz2018-08-221-1/+1
|
* Fixed #28985 -- Removed unneeded None checks before hasattr().Дилян Палаузов2018-01-031-1/+1
|
* Fixed #28893 -- Removed unnecessary dict.items() calls.Tim Graham2017-12-061-2/+2
|
* Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham2017-09-071-3/+6
| | | | This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
* Fixed CVE-2017-12794 -- Fixed XSS possibility in traceback section of ↵Tim Graham2017-09-051-2/+2
| | | | | | technical 500 debug page. This is a security fix.
* Fixed #28485 -- Made ExceptionReporter.get_traceback_frames() include frames ↵Martin von Gagern2017-08-121-16/+20
| | | | without source code.
* Fixed #28457 -- Updated the design of the 'Congrats' page for new Django ↵Timothy Allen2017-08-071-12/+6
| | | | | | projects. Developed by Timothy Allen and Chad Whitman of The Wharton School with shepherding from Aymeric Augustin and Collin Anderson.
* Fixed #27818 -- Replaced try/except/pass with contextlib.suppress().Mads Jensen2017-06-281-6/+3
|
* Fixed #28271 -- Added charset to technical_500_response() AJAX response.partizan2017-06-051-1/+1
|
* Refs #27795 -- Replaced many force_text() with str()Claude Paroz2017-04-271-2/+2
| | | | Thanks Tim Graham for the review.