0

In django I can find a lot of examples of reading a database and displaying the data accordingly on a webpage. I can find no example of writing back to the database though (according to user input, or to the result of a computation). Can you point me to example code, or a tutorial or help me on how to do this?

arennuit
  • 855
  • 1
  • 7
  • 23

1 Answers1

1

If your question is concerned about inserting data in the db, You can write back to the database in Django through views.py. You can refer to these:

Otherwise, you can also write data directly using the \admin site. If you're looking to write data from the webpage, you can check out how forms work in Django. I hope that helps.

Shahab Rahnama
  • 982
  • 1
  • 7
  • 14