W3Tutorials.net
Toggle Menu
Home
Online Go Compiler
Tutorials
Javascript Tutorials
Python Tutorials
Go Tutorials
Blog
All Posts
Django Framework Basics
Quiz yourself on Django models,views,templates,and URLs.
1. What does MVT stand for in Django?
Model-View-Template
Model-View-Controller
Model-View-Trigger
Model-View-Transmit
2. Which file defines URL patterns in a Django app?
urls.py
routes.py
urls.conf
routing.py
3. What is Django's default database backend?
SQLite
PostgreSQL
MySQL
Oracle
4. Which command creates a new Django project?
django-admin startproject
django startproject
python manage.py startproject
django create project
5. Which class-based view displays a single object's details?
DetailView
ListView
FormView
UpdateView
6. What does Django's ORM allow developers to do?
Interact with databases using Python objects
Write raw SQL queries only
Design HTML templates
Handle user authentication
7. Which file stores project-wide settings like INSTALLED_APPS?
settings.py
config.py
django.conf
app_settings.py
8. What command generates migration files based on model changes?
python manage.py makemigrations
python manage.py migrate
django-admin makemigrations
python manage.py syncdb
9. Select all core components of Django's MVT architecture.
Models
Views
Templates
Controllers
Middleware
10. Which of these are valid Django management commands?
runserver
createsuperuser
startapp
serve
migrate
11. Which are features included in Django by default?
Admin interface
Authentication system
REST API
ORM
WebSocket support
12. Django is classified as a 'batteries included' framework.
True
False
13. Django templates can include Python code directly using {% python %} tags.
True
False
14. What is the command to start the Django development server?
15. Name the Django app that provides a built-in administrative interface (lowercase).
Reset
Answered 0 of 0 — 0 correct