Re: Data Retrieval from sqlite3

2018-08-19 Thread ruban bharath
Thank you sir , i got a solution for this On Thursday, August 16, 2018 at 5:40:29 PM UTC+5:30, Vikrant Gupta wrote: > > Hello Ruban, > > Your code may be something like this > > var=ā€˜dā€™ #input from HTML > Ans=models.objects.get(name=var) > Print(Ans.batch) > > By, > Vikrant > > On Aug 16, 2018,

Re: Data Retrieval from sqlite3

2018-08-16 Thread Vikrant Gupta
Hello Ruban, Your code may be something like this var=ā€˜dā€™ #input from HTML Ans=models.objects.get(name=var) Print(Ans.batch) By, Vikrant > On Aug 16, 2018, at 4:30 PM, ruban bharath wrote: > > Name batch > a one > b two > c

Re: Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
cursor.execute('SELECT * FROM music_output WHERE username =?', t) name2 = cursor.fetchall() return render(request, "home.html", {'name3': name2}) This one suits me a error for using that *"?" how can i pass parameter to get dynamic input* thats my problem sir On Thursday, August 16, 2018

Re: Data Retrieval from sqlite3

2018-08-16 Thread Jason
I would suggest you go through the django tutorial at https://docs.djangoproject.com/en/2.1/intro/tutorial01/ Your question suggests that you haven't done so, and it should help you find the answer to your question. -- You received this message because you are subscribed to the Google Groups

Data Retrieval from sqlite3

2018-08-16 Thread ruban bharath
*Name batch* a one b two c three d four e five This is my table If i entered "*d*" in the front end (html) my expected output must be like d four what is the django sqlit