Fix django logging handler circular import bug