Why does combining multiple annotations work in my case?

2017-08-11 Thread Marcin Gałązka
The documentation advises against combining multiple annotations in one query: https://docs.djangoproject.com/en/1.11/topics/db/aggregation/#combining-multiple-aggregations due to the infamous bug #10060: https://code.djangoproject.com/ticket/10060 And indeed, having tried the counter-example f

RE: How to use try..except, but when DEBUG is True, show the error?

2017-08-12 Thread Marcin Gałązka
> Hello, > > i have these code, for example: > > try: >x = parse_date('') > except TypeError: > return False > ​> > > It's ok for me code like these.. but, when DEBUG == True, I like to show the > django default error page... > > How can I do that? > > Regards Why not simply re-rai