[점프 투 장고] 3-03 템플릿 필터

아래와 같이 오류가 납니다.
'''
Traceback (most recent call last):
File "C:\Users\jinha\myenv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Users\jinha\myenv\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, callback_args, *callback_kwargs)
File "c:\work\mysite\pybo\views.py", line 21, in index
return render(request, 'pybo/question_list.html', context)
File "C:\Users\jinha\myenv\lib\site-packages\django\shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\loader.py", line 15, in get_template
return engine.get_template(template_name)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\backends\django.py", line 34, in get_template
return Template(self.engine.get_template(template_name), self)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\engine.py", line 143, in get_template
template, origin = self.find_template(template_name)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\engine.py", line 125, in find_template
template = loader.get_template(name, skip=skip)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\loaders\base.py", line 29, in get_template
return Template(
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 155, in init
self.nodelist = self.compile_nodelist()
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 193, in compile_nodelist
return parser.parse()
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 478, in parse
raise self.error(token, e)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 476, in parse
compiled_result = compile_func(self, token)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\loader_tags.py", line 278, in do_extends
nodelist = parser.parse()
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 478, in parse
raise self.error(token, e)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\base.py", line 476, in parse
compiled_result = compile_func(self, token)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\defaulttags.py", line 1091, in load
lib = find_library(parser, name)
File "C:\Users\jinha\myenv\lib\site-packages\django\template\defaulttags.py", line 1036, in find_library
raise TemplateSyntaxError(
django.template.exceptions.TemplateSyntaxError: 'pybo_filter' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
i18n
l10n
log
static
tz
[16/Nov/2021 20:27:30] "GET /pybo/ HTTP/1.1" 500 155559
'''

jinhaesik 73

M 2021년 11월 16일 8:30 오후

목록으로
1개의 답변이 있습니다. 1 / 1 Page

다음 파일을 작성하셨나요?

C:\projects\mysite\pybo\templatetags\pybo_filter.py

경로명등이 맞는지 확인해 보세요.

박응용

2021년 11월 16일 9:21 오후