Closed caissalover closed 4 years ago
Looks like an application issue where you are using relative paths, use absolute ones.
Thanks xrmx, setting template_folder to the path did it, but isn't it an error nevertheless. It should work with relative paths too right?
I have made a flask python application which has index.html in the templates directory under root directory and myapp.py under root directory. Below is my ini configuration.
When I execute "uwsgi --ini myapp.py" and "curl 0.0.0.0:2727" on another virtual terminal, I get
When I run my app with "flask run" and curl __, I get my index.html markup
I also tried hosting webpage with "gunicorn myapp:app" and it works perfectly fine.
https://stackoverflow.com/questions/62814165/jinja2exceptions-templatenotfound-index-html-with-uwsgi-but-not-flask-run