- Flask Framework Cookbook(Second Edition)
- Shalabh Aggarwal
- 76字
- 2021-06-24 13:58:05
Creating a basic product model
In this recipe, we will create an application that will help us to store products to be displayed on the catalog section of a website. It should be possible to add products to the catalog, and then delete as and when required. As we saw in previous chapters, this is possible to do using non-persistent storage as well. Here, however, we will store data in a database to have persistent storage.