You need to intialize cursor object using cursor factory.
e.g.: cursor = conn.cursor(cursor_factory=psycopg2.extras.NamedTupleCursor)
then used this cursor object to access value with . operator.
On Fri, Sep 6, 2019 at 12:15 AM leb dev wrote:
> i have a django project that is connected to SQL
i have a django project that is connected to SQL Server i tried to
retrieve data from the database.
if i try to display all the data it run correct and display all the values.
but if i try to display the data in an **html table** it doesn't display
anything.
views.py
===
def connect(
2 matches
Mail list logo