#7471: Django serves exception tracebacks from 404 handlers
----------------------------------------+-----------------------------------
          Reporter:  trevor             |         Owner:  leahculver
            Status:  assigned           |     Milestone:  1.0       
         Component:  Core framework     |       Version:  SVN       
        Resolution:                     |      Keywords:            
             Stage:  Ready for checkin  |     Has_patch:  0         
        Needs_docs:  0                  |   Needs_tests:  0         
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Changes (by leahculver):

  * stage:  Accepted => Ready for checkin

Comment:

 Modified get_response to handle 404 handler errors (handler404 view) with
 a generic 500 error. This displays the 500 page instead of a stack trace.

 This is very difficult to write a stable test case for since it involves
 adding a custom handler404 that throws an exception in the root urls.py.
 This is easy to do by pointing handler404 to a view that does not exist.
 However, this is not a good thing to add to the test suite since it would
 mess up other test cases. I've tested this manually and Malcolm
 (mtreddinick) is okay with it not having a test case.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7471#comment:6>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to