Django TutorialLesson 12Free preview
Django Insert Data
This lesson is part of Django · All levels
Summary
New data can be entered through the model object and then called save(), or using the objects.create(method). After save(), a new line is created in the associated table. This way you avoid writing SQL manuals.
Key points
- The instance of the model then save() inserts the data
- Objects.create() make and keep
- Data stored in model tables
- No need to write SQL manuals
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.