Q. How do you register a model with the admin site?

  • (A) Using models.register()
  • (B) Using admin.site.register()
  • (C) By editing urls.py
  • (D) By using views.py
πŸ’¬ Discuss
βœ… Correct Answer: (B) Using admin.site.register()
Explanation: `admin.site.register()` is used to register models in the admin interface.
Explanation by: Mr. Dubey
`admin.site.register()` is used to register models in the admin interface.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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