I was following the tutorial and I got the exception jinja2.exceptions.TemplateNotFound: auth/register.html while rendering the register template.
Actual code: return render_template("auth/register.html")
Solution: return render_template("register.html")
The template should be in a folder called "auth" under the "templates" folder. This is shown in the tutorial:
https://flask.palletsprojects.com/en/1.1.x/tutorial/templates/#register
flaskr/templates/auth/register.html
and in the code:
Most helpful comment
The template should be in a folder called "auth" under the "templates" folder. This is shown in the tutorial:
https://flask.palletsprojects.com/en/1.1.x/tutorial/templates/#register
and in the code:
https://github.com/pallets/flask/tree/599f32c7a4012ae5988c2599344503cfddeb1a08/examples/tutorial/flaskr/templates