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:
Anubhav Joshi 2014-06-24 09:43:34 +05:30 committed by Tim Graham
parent 150d88cc2c
commit dbbcfca476
4 changed files with 18 additions and 7 deletions

View file

@ -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
^^^^^