-1

I already checked out this and this and this but none had anything to do with my problem.

I have the most basic and simplest imaginable flask script with a very simple HTML page. You can check yourself here: https://1ee1eb4d224e.ngrok.io

I dont know what i did wrong. I put {{ result }} in my html page. I added a route in Flask, using jinjas render_template and specified a value for result. Yet on the actual HTML page i still only see {{ result }}? Is this a bug? Surely i cant screw up something this trivial... right?

EDIT: so it seems flask is not rendering Jinja2 Tags at all - an If statement i added for testing also is just displayed like this on the site. I dont know what i missed, since Jinja2 is built into flask i shouldnt have to do anything else so that jinja's rendering engine works?

Flying Thunder
  • 890
  • 2
  • 11
  • 37

2 Answers2

1

Issue resolved by having OAuth.html in templates folder. Directory structure will be :

|
+ main.py
|
+ templates
| +
| |
| + OAuth.html
0

I installed each module that we use, and on my pc it did work, I really want to help you so I would like you to confirm that you have OAuth.html saved in templates, in addition to how you run main.py and how you open it in the browser.

fraco_oxza
  • 70
  • 6