Template Not Found!
I was to run the Flask server to view the login and register html, but the displaty shown "Internal Server Error".
How to resolve it and why it happen?
I think the issue is that you are trying to render "index.html" (main.py:14) but that file doesn't exist.
Edit: apparently I wasn't clear enough. The file "index.html" does not exist in your template directory for the app, which is undefined. You should modify your template folder to be "flask-tutorial/flaskr/templates", by modifying main.py:4 as follows:
Note that if you are trying to render "blog/index.html" as the homepage, you must also update main.py:14 with that.
your error is probably because you should name your folder
templates instead of
flaskr. And then, render it from there, with the proper file directory.