커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
오류
undefined주차
북마크
추*영
댓글
3
추천
0
조회수
5
조회수
5
답변 완료

TemplateNotFound

jinja2.exceptions.TemplateNotFound: index.html


Traceback (most recent call last)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 2548, in __call__

return self.wsgi_app(environ, start_response)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 2528, in wsgi_app

response = self.handle_exception(e)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app

response = self.full_dispatch_request()

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request

rv = self.handle_user_exception(e)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request

rv = self.dispatch_request()

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\app.py", line 1796, in dispatch_request

return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\app,py.py", line 6, in home

return render_template('index.html')

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\templating.py", line 146, in render_template

template = app.jinja_env.get_or_select_template(template_name_or_list)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\jinja2\environment.py", line 1081, in get_or_select_template

return self.get_template(template_name_or_list, parent, globals)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\jinja2\environment.py", line 1010, in get_template

return self._load_template(name, globals)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\jinja2\environment.py", line 969, in _load_template

template = self.loader.load(self, name, self.make_globals(globals))

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\jinja2\loaders.py", line 126, in load

source, filename, uptodate = self.get_source(environment, name)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\templating.py", line 62, in get_source

return self._get_source_fast(environment, template)

File "C:\Users\82107\Desktop\sparta\프로젝츠\mars\venv\lib\site-packages\flask\templating.py", line 98, in _get_source_fast

raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: index.html

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

  • dump() shows all variables in the frame
  • dump(obj) dumps all that's known about the object

Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.

localhost:5000에 들어가면 이런 화면이 뜹니다

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴