#18418: Debug doesn't catch exception instead complains views does not exist
-------------------------------+--------------------
     Reporter:  yeukhon        |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:  debug
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 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?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18418>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to