Home »
Python »
Django MCQs
Which is the correct import statement to use the render() function in Django?
23. Which is the correct import statement to use the render() function in Django?
- from django.shortcuts import render
- from django import render
- from django.requests import render
- from httpresponses import render
Answer: A) from django.shortcuts import render
Explanation:
The correct import statement to use the render() function in Django is:
from django.shortcuts import render