Re: Surprising behaviour in case of exception in form widget when DEBUG=False

2016-03-11 Thread Federico Capoano
Right, I see the log entries. Good to know there's a way to log them, for those who use sentry it will be even easier to notice this problem, just ensure you're logging WARNING messages. Thanks Federico On Friday, March 11, 2016 at 1:18:27 PM UTC+1, Tim Graham wrote: > > Yes, I think it's {%

Re: Surprising behaviour in case of exception in form widget when DEBUG=False

2016-03-11 Thread Tim Graham
Yes, I think it's {% include %} rendering an empty string if there's an exception. In Django 1.9, we added a logger for these exceptions to make debugging easier: https://docs.djangoproject.com/en/stable/topics/logging/#django-template. On Friday, March 11, 2016 at 6:30:35 AM UTC-5, Federico

Surprising behaviour in case of exception in form widget when DEBUG=False

2016-03-11 Thread Federico Capoano
This never happened to me and I find it very strange. Maybe it's a bug or maybe it's the intended behaviour, but I find it REALLY strange. Consider a widget which, for some reason, raises an exception: class CoolWidget(AdminTextareaWidget): def render(self, name, value, attrs={}):