Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16803

Templates not found when using flask

$
0
0

My problem is when i run return render_template("templates/home.html") it returns the error that could not find a template here it is

File "C:\Users\gamal\PycharmProjects\pythonProject\.venv\Lib\site-packages\jinja2\environment.py", line 1010, in get_templatereturn self._load_template(name, globals)       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\gamal\PycharmProjects\pythonProject\.venv\Lib\site-packages\jinja2\environment.py", line 969, in _load_templatetemplate = self.loader.load(self, name, self.make_globals(globals))           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\gamal\PycharmProjects\pythonProject\.venv\Lib\site-packages\jinja2\loaders.py", line 125, in loadsource, filename, uptodate = self.get_source(environment, name)                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\gamal\PycharmProjects\pythonProject\.venv\Lib\site-packages\flask\templating.py", line 65, in get_sourcereturn self._get_source_fast(environment, template)       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\gamal\PycharmProjects\pythonProject\.venv\Lib\site-packages\flask\templating.py", line 99, in _get_source_fastraise TemplateNotFound(template)

thats just all the error thing happing.

i really dont know what to do i try to use google but found nothing

(btw i am using pycharm)


Viewing all articles
Browse latest Browse all 16803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>