Ticket #6278: 404_500_docs.diff
File 404_500_docs.diff, 1.1 KB (added by , 17 years ago) |
---|
-
docs/request_response.txt
575 575 to the template: ``request_path``, which is the URL that resulted 576 576 in the 404. 577 577 578 * The 404 view is rendered with ``RequestContext`` and will have access to 579 variables supplied by your ``TEMPLATE_CONTEXT_PROCESSORS`` (e.g. MEDIA_URL). 580 578 581 * If ``DEBUG`` is set to ``True`` (in your settings module), then your 404 579 582 view will never be used, and the traceback will be displayed instead. 580 583 … … 588 591 589 592 This means you need to define a ``500.html`` template in your root template 590 593 directory. This template will be used for all server errors. The 591 default 500 view passes no variables to this template. 594 default 500 view passes no variables to this template. The default 500 view 595 is rendered with an empty ``Context`` to lessen the chance of additional errors. 592 596 593 597 This ``server_error`` view should suffice for 99% of Web applications, but if 594 598 you want to override the view, you can specify ``handler500`` in your