Q. Which method in Django model is used to save data to the database?

  • (A) commit()
  • (B) save()
  • (C) submit()
  • (D) create()
πŸ’¬ Discuss
βœ… Correct Answer: (B) save()
Explanation: `save()` writes the model instance to the database.
Explanation by: Mr. Dubey
`save()` writes the model instance to the database.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate