To query a specific database in django I can do:
Item.objects.using(\'specific_db\').all()
Is there a way to do the same using a django connect
According the the django documentation on Using raw SQL on multiple databases, you would use connections rather than connection:
connections
connection
from django.db import connections cursor = connections['specific_db'].cursor() cursor.execute("select * from item")