#16502: CreateView useless error message when template_name is not specified -------------------------------------+------------------------------------- Reporter: | Owner: nobody silverghost3@… | Status: new Type: Bug | Component: Generic views Milestone: | Severity: Normal Version: 1.3 | Keywords: CreateView "generic Resolution: | view" Triage Stage: | Has patch: 0 Unreviewed | Needs tests: 0 Needs documentation: 0 | Easy pickings: 0 Patch needs improvement: 0 | UI/UX: 0 | -------------------------------------+------------------------------------- Changes (by aaugustin):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: Actually, this is a crash of the debug view itself. When Django encounters a `TemplateDoesNotExist` exception, the debug view attempts to gather information about available template loaders and templates. It relies on the fact that `django.template.loaders.template_source_loaders` is already populated (by `django.template.loaders.find_template`). But in your case, it isn't. So a new exception is raised, it overrides the initial exception, and — unfortunately — it makes it difficult to understand what really happens here. -- Ticket URL: <https://code.djangoproject.com/ticket/16502#comment:1> 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.