Jun-16-2020, 06:36 AM
(Jun-16-2020, 06:29 AM)ndc85430 Wrote: For a start, your template doesn't have any variables in it, does it? Did you even try the example from the Flask docs like I suggested? It shows you all the pieces - the template and passing variable data to it. OK, the example is a bit different, since the data are passed in the request URL, but that's really not the point. It's just some data that's passed torender_template
and the final HTML is generated from that.
How have you been learning how to use Flask, or build a web application in general? It seems like there are a lot of gaps. Maybe try going through Grinberg's tutorial, because I think he explains quite a lot.
I've just been teaching myself by trying to figure out this project. I've got about half of it done so far I try almost every night but I always hit a wall. I just don't get it. If I look at an example that isn't doing what I'm trying to do - it just ends up confusing me even more.
Why would I need variables in the HTML? I already have the data that I need in the variable "b" in python. I just want to print out the values for the users to see from the search.