mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #21668 -- Return detailed error page when SuspiciousOperation is raised and DEBUG=True
Thanks GDorn and gox21 for report. Thanks Tim Graham for idea and review.
This commit is contained in:
parent
150d88cc2c
commit
dbbcfca476
4 changed files with 18 additions and 7 deletions
|
@ -211,6 +211,10 @@ Requests and Responses
|
|||
<django.http.HttpRequest.build_absolute_uri>` method now handles paths
|
||||
starting with ``//`` correctly.
|
||||
|
||||
* If :setting:`DEBUG` is ``True`` and a request raises a
|
||||
:exc:`~django.core.exceptions.SuspiciousOperation`, the response will be
|
||||
rendered with a detailed error page.
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue