Fix Django logging