Insert the selected data from the grid into SQL Server database

I am trying to create a website using Django, python and sql server which lists out the items in a tabular form. And upon selection of particular item via check box i want to update my database table with selected items.

For eg: in the image below if ID : n1234 is selected i want to update backend table with drugsdispensed

enter image description here

I am trying to learn Django and Python.



HTML File :

enter image description here

loop through the object and save it in the database : enter image description here

I know there is a better of doing the same thing looking for comments


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.