Which Django keyword is used to send variables into the template?

28. Which Django keyword is used to send variables into the template?

  1. send
  2. go
  3. export
  4. with

Answer: D) with

Explanation:

You can use the with keyword to send variables into the template. Consider the below-given example –

{% include "students.html" with me="Alvin Alex" class="B.Tech First Year" %}

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.