Pass Variable From Python (flask) To Html In Render Template?
The web server works (python flask) but when I go to the website, where the value of animal should be (dog) it shows the variable name animal. (There is more to the code but this i
Solution 1:
Shouldn't it be animal = 'dog'
? If 'dog' is the value you want to see printed after "I like the animal:", this is what you need to do:
animal = 'dog'return render_template('index.html', value=animal)
Post a Comment for "Pass Variable From Python (flask) To Html In Render Template?"