Hello,
I'm currently getting this error and when I try to open my web page, it doesn't generate any new errors.
This is my last error log:
2020-07-06 11:54:09,719: Exception on / [GET]
Traceback (most recent call last):
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/thewongandonly/portfo/server.py", line 10, in my_home
return render_template('index.html')
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/templating.py", line 138, in render_template
ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/jinja2/environment.py", line 930, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/jinja2/environment.py", line 883, in get_template
return self._load_template(name, self.make_globals(globals))
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/jinja2/environment.py", line 857, in _load_template
template = self.loader.load(self, name, globals)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/templating.py", line 60, in get_source
return self._get_source_fast(environment, template)
File "/home/thewongandonly/.virtualenvs/my-virtualenv/lib/python3.8/site-packages/flask/templating.py", line 89, in _get_source_fast
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: ./index.html
Which was giving me a 502-backend error message. Could anybody advise some help on this please? Thanks!
[edited by admin: formatting]