Re: django print all record in the cmd but display the last one on template

2019-10-11 Thread Raja Sekar Sampath
Hi, Convert the variable IPD into an array or render result variable on template On Fri, 11 Oct 2019 at 12:04, leb dev wrote: > i have a function that retrieve data from sql server database where i am > using **fetchall()** then for loop > the retrieved data are all printed on the **cmd

django print all record in the cmd but display the last one on template

2019-10-11 Thread leb dev
i have a function that retrieve data from sql server database where i am using **fetchall()** then for loop the retrieved data are all printed on the **cmd console** but when i tried to display these result on the template it **only display the last record**. views.py def