Flask-Web-App-Tutorial icon indicating copy to clipboard operation
Flask-Web-App-Tutorial copied to clipboard

jinja2.exceptions.TemplateNotFound error pls help

Open Injust-Ghost opened this issue 3 years ago • 3 comments

Screenshot 2022-01-20 185551 image

How do I solve this issue, as I downloaded the extension from vs code itself but it is saying that templates are not found.

Please help me!!

Injust-Ghost avatar Jan 20 '22 13:01 Injust-Ghost

Even I am getting this same Error. Would anyone please help us out?

Bhushankoli22 avatar Feb 11 '22 13:02 Bhushankoli22

had the same issue. i had misnamed the templates folder as "template" maybe check that

Tavatos avatar Apr 30 '22 07:04 Tavatos

Had the same issue.

in your init.py, in the "create_app" function definition you'll need to correct: app = Flask(name) to app = Flask(name,template_folder="template")

Link to the solution source

ChrisReidyReply avatar Aug 09 '22 10:08 ChrisReidyReply