Which file declares Django models?
Correct answer
A. models.py
14 views
A. models.py
14 views
models.py declares a Django app's models — the Python classes that define database tables. Each class inherits from django.db.models.Model.
views.py holds request-handling logic, admin.py registers models with the admin site, and apps.py holds the app's configuration.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.