Which of the following is used to render a template in Django?

Which of the following is used to render a template in Django?

a) render_template()
b) render()
c) return_html()
d) template()

Answer:

b) render()

Explanation:

The render() function is used to render a template in Django by passing a request and context data to generate the final HTML output.

Reference:

Django Quiz – MCQ Questions and Answers

Scroll to Top