File “/home/share/django/lib/python3.8/site-packages/django/template/base.py”, line 511, in parse compiled_result = compile_func(self, token) File “/home/share/django/lib/python3.8/site-packages/django/template/defaulttags.py”, line 1088, in load lib = find_library(parser, name) File “/home/share/django/lib/python3.8/site-packages/django/template/defaulttags.py”, line 1028, in find_library raise TemplateSyntaxError( django.template.exceptions.TemplateSyntaxError: ‘custom_filters’ is not a registered tag library. Must be one of: admin_list admin_modify admin_urls cache django_bootstrap5 humanize i18n l10n log static tz
エラーが発生しているのは、custom_filters タグライブラリが登録されていないためです。これを解決するには、タグライブラリをテンプレートに登録する必要があります。
次の手順に従って、tools/rakuten_price_search.html テンプレートでの登録を確認してください。
-
tools/rakuten_price_search.htmlテンプレートの先頭に{% load custom_filters %}を追加します。html
{% load custom_filters %} -
これにより
custom_filtersタグライブラリが登録され、get_itemフィルターが使用できるようになります。
この変更を加えてみてください。エラーが解消されたかどうか教えてください。

ディスカッション
コメント一覧
まだ、コメントがありません