What is the purpose of Django models?
-
A
Handling HTTP requests
-
B
Representing database tables as Python objects
Correct answer
-
C
Defining URL patterns
-
D
Creating user interfaces
Correct answer
B. Representing database tables as Python objects
12 views
Explanation
Django models are used to define the structure of database tables as Python classes.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ