Django Interview Questions with Code Examples
What is Django?
Django is a high-level Python web framework.
What is a Django model?
Models define database structure.
from [Link] import models class Student([Link]): name =
[Link](max_length=100) age = [Link]()
What is a view?
Views handle request and response.
from [Link] import HttpResponse def home(request): return
HttpResponse("Hello World")
What is URL routing?
Maps URLs to views.
from [Link] import path from .views import home urlpatterns = [
path('', home), ]
What is Django ORM?
ORM allows database operations using Python.
[Link](age__gte=18)