Re: how to display retrieved data from database using django

2019-09-06 Thread Gajanan Kathar
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

how to display retrieved data from database using django

2019-09-05 Thread leb dev
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