django-ORM model change operation deletions difference

 

Created django scaffolding

 

  Open Navicat create a database

 

 

 Well, after this new configuration database information in pycharm

 

 

Creating a app

 

 

Remember, this app installation configuration

 

 Created the ORM model , the next step is ORM CRUD operations a

 

First created this book, and then this class are mapped to tables in the database

 

 

 The Book became a mapping table can be operated after the

 Views.py increased use in the ORM   increasing a data into the database

 

Inquire  

 

 

 

delete data

 

 

 

change the data

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/ifdashui/p/11839094.html