πŸ“Š Django
Q. Which Django model method is used to save data to the database?
  • (A) insert()
  • (B) add()
  • (C) save()
  • (D) commit()
πŸ’¬ Discuss
βœ… Correct Answer: (C) save()

Explanation: The `save()` method writes the model instance to the database.

Explanation by: Mr. Dubey
The `save()` method writes the model instance to the database.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate