After connecting to the Django ORM as described here and here.
What's the best practice to avoid a runtime error if there already is an active connection/setup/settings already configured?
Currently if you call settings.configure(...)
again you get an exception: RuntimeError: Settings already configured.
I want to avoid potentially making multiple connections and this runtime error when already setup.
Is there a way to disconnect gracefully or should this be try/catched?