What is a Django model used for?

What is a Django model used for?

a) Handling the HTML and CSS for the frontend
b) Interfacing with the database to manage data
c) Managing user authentication
d) Processing forms on the backend

Answer:

b) Interfacing with the database to manage data

Explanation:

A Django model is a Python class that represents the structure of a database table and provides an interface for interacting with the data.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top