Html not rendering in flask

Question:
I am making a simple currency converter. I have uploaded all the files into the proper directory but everytime I run the code it shows a blank web page . I have imported flask and render templates , I don’t really know what is going on
Repl link:

https://replit.com/@HassanYezir/Python-3?s=app

code snippet

Welcome to Ask! Try changing app.run(debug=True) to app.run(host='0.0.0.0', port=8080). It worked for me in a fork.

7 Likes

@CoderElijah
Thank you so much, it works. I am also using flask for another web app and I tried the same solution but this time it did not work. Here is the link to the other app
https://replit.com/@HassanYezir/Python-4?s=app

1 Like

@YezirHasan Your Index.html is captilized. Try renaming it as index.html

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.