we can only spcify database via using or router ?

Hi Guys,

just want to confirm. per below doc, if we want to specify a database when model run query, only three method can do it.

  1. use “using” parameter (on manager or queryset)
  2. use db router
  3. use connections[alias] to get curse directly

am I right ?

Briefly, yes.

But the way I’m reading your question is that there’s really a “question behind the question” that you’re trying to answer.

Always remember that “Django is just Python” - which really translates to; “Anything you can do in Python, you can do in Django”. You just want to be sure you understand the implications and side-effects of what you’re doing.