Avoid "RuntimeError: Settings already configured."