#36848: Documentation doesn't mention that BadRequest is handled by handler400
-------------------------+------------------------------------------------
     Reporter:  Lincoln  |                     Type:  Cleanup/optimization
       Status:  new      |                Component:  Documentation
      Version:           |                 Severity:  Normal
     Keywords:           |             Triage Stage:  Unreviewed
    Has patch:  0        |      Needs documentation:  0
  Needs tests:  0        |  Patch needs improvement:  0
Easy pickings:  0        |                    UI/UX:  0
-------------------------+------------------------------------------------
 A `BadRequest` exception raised in a view, is handled by the `handler400`
 view (default `django.views.defaults.bad_request`).

 
https://github.com/django/django/blob/c68e4adea0703354508d51895b091771b1f6ac45/django/core/handlers/exception.py#L96-L104

 Looking at the documentation, I can't see this link mentioned anywhere.

 Places I looked:

 * https://docs.djangoproject.com/en/dev/ref/views/#the-400-bad-request-
 view (This section only mentions `SuspiciousOperation`)
 * https://docs.djangoproject.com/en/dev/topics/http/views/#customizing-
 error-views
 * https://docs.djangoproject.com/en/dev/ref/urls/#handler400
 * https://docs.djangoproject.com/en/dev/ref/exceptions/#badrequest

 For comparison, This section about the 404 view

 https://docs.djangoproject.com/en/dev/ref/views/#the-404-page-not-found-
 view

 explicitly says "When you raise Http404 from within a view, ..."
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36848>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b96d2487e-549ba5d0-9fce-441b-b26a-32509e1eb62d-000000%40eu-central-1.amazonses.com.

Reply via email to