DEV Community

Malomo Oluwatobi Sunday
Malomo Oluwatobi Sunday

Posted on

Answer: Flask raises TemplateNotFound error even though template file exists

You must create your template files in the correct location; in the templates subdirectory next to your python module.

The error indicates that there is no home.html file in the templates/ directory. Make sure you created that directory in the same directory as your python module, and that you did…

Top comments (0)