Q. What is the correct method to render a template in Django?

  • (A) render_template()
  • (B) show()
  • (C) render()
  • (D) display()
πŸ’¬ Discuss
βœ… Correct Answer: (C) render()
Explanation: `render()` is used to return a `HttpResponse` with a template and context.
Explanation by: Mr. Dubey
`render()` is used to return a `HttpResponse` with a template and context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
101
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate