Django

Code

Changeset 7081

Show
Ignore:
Timestamp:
02/03/08 19:48:53 (7 months ago)
Author:
mtredinnick
Message:

Fixed #6278 -- Documented that the 404 template is passed a RequestContext? and the 500 handler is not. Thanks, Rob Hudson.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/request_response.txt

    r6941 r7081  
    576576      in the 404. 
    577577 
     578    * The 404 view is passed a ``RequestContext`` and will have access to 
     579      variables supplied by your ``TEMPLATE_CONTEXT_PROCESSORS`` (e.g. 
     580      ``MEDIA_URL``). 
     581 
    578582    * If ``DEBUG`` is set to ``True`` (in your settings module), then your 404 
    579583      view will never be used, and the traceback will be displayed instead. 
     
    588592 
    589593This means you need to define a ``500.html`` template in your root template 
    590 directory. This template will be used for all server errors. The 
    591 default 500 view passes no variables to this template. 
     594directory. This template will be used for all server errors. The default 500 
     595view passes no variables to this template and is rendered with an empty 
     596``Context`` to lessen the chance of additional errors. 
    592597 
    593598This ``server_error`` view should suffice for 99% of Web applications, but if