How to use "dt" in cursor.execute() to get the tables in PostgreSQL? (Django)
In Django, I'm trying to use dt in cursor.execute() to get the tables in PostgreSQL as shown below: # "views.py" from django.http import HttpResponse from django.db import connection def test(request): cursor = connection.cursor() cursor.execute('''dt''') # Here row = cursor.fetchone() print(row)…