#18418: Debug doesn't catch exception instead complains views does not exist -----------------------------+------------------------------------ Reporter: yeukhon | Owner: nobody Type: Bug | Status: new Component: Core (URLs) | Version: 1.4 Severity: Normal | Resolution: Keywords: debug | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+------------------------------------
Comment (by gnosek): How can I reproduce it? {{{ # app18418/forms.py from django import forms class SubmitButtonField(forms.Field): pass class AForm(forms.Form): save_button = forms.SubmitButtonField(required=False) # cat app18418/views.py import app18418.forms def a_view(request): form = app18418.forms.AForm() # app18418/urls.py from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', url(r'^$', 'app18418.views.a_view', name='home'), ) }}} Visiting / properly raises the exception: {{{ AttributeError at / 'module' object has no attribute 'SubmitButtonField' }}} -- Ticket URL: <https://code.djangoproject.com/ticket/18418#comment:3> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e7e5da2c586858fe6ef3e9928cc5de41%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.