Build a CRUD App with SQLAlchemy - Handling User Input

Creating, updating, and deleting information from a database requires handling user input on what is being created/updated/deleted.

请添加图片描述
MVC Development:

  • On the view: implement an HTML form
  • On the controller: retrieve the user’s input, and manipulate models
  • On the models: create a record in our database, and return the newly created to-do item to the controller
  • On the controller: take the newly created to-do item, and decide how to update the view with it.

Guess you like

Origin blog.csdn.net/BSCHN123/article/details/121327031