1. Home
  2. Computer Science MCQs
  3. Django
  4. Which file declares Django models?

Added 14 Sep 2025

Which file declares Django models?

  1. models.py Correct answer
  2. views.py
  3. admin.py
  4. apps.py

Correct answer

A. models.py

14 views

MCQSEXAM

Explanation

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.

Reference

https://docs.djangoproject.com/en/5.1/topics/db/models/

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Django MCQs

Practise all Django MCQs

Similar MCQs