Don't wrap exceptions in TemplateSyntaxError under DEBUG
|Reported by:||jMyles||Owned by:||jMyles|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This problem is easy to reproduce:
*Create a new django project.
*In settings.py, set the database to postgres but with a non-existent hostname.
*Create a model (Llama) and view (home)
*In the view, pass Llama.objects.all() to the context as "llamas"
*In the template, attempt to iterate through "llamas"
Change History (13)
comment:1 Changed 3 years ago by jMyles
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:3 Changed 3 years ago by carljm
- Summary changed from TemplateSyntaxError is raised improperly in some cases where database connection fails to Don't wrap exceptions in TemplateSyntaxError under DEBUG
- Triage Stage changed from Unreviewed to Accepted