[Answer]-Generation random words in Django

1👍

Put i into the context that you use to render the HTML output. Then you can access it with the syntax {{ i }} inside the template.

At the end of your view:

return render("some_template.html", {'i': i})

and in the view:

<p>Do you like {{ i }}?</p>

0👍

Leave a comment