Opened 12 years ago

Last modified 11 years ago

#18418 closed Bug

Debug doesn't catch exception instead complains views does not exist — at Initial Version

Reported by: yeukhon Owned by: nobody
Component: Core (URLs) Version: 1.4
Severity: Normal Keywords: debug
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Suppose we have this forms.py: http://codepad.org/HIt9bBtA

Notice that save_button has an error. I accidentally added forms. in the beginning. This is invalid, and Python will raise exception.

However, when we try to visit the page, it complains about myapp.views.view_name does not exist.
I fired up django shell, and when I import myapp.views I got this error:

AttributeError: 'module' object has no attribute 'SubmitButtonField'

Django debug page does not really catch this kind of exception. Is this a bug or an enactment-to-be-made?

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top