Lol, I was setting SEND_EMAIL to True on every WARNING and NOTICE. I am not sure whether if statements or variable assignments are more expensive. Oh well.