I got this error and it seemed error occured in django template. can anyone help me fix this error? my app recently have some errors that seems related to django version, as my django version is 3.2.12 and errors were about depricated functions in newer versions.Is it possible current Error also be related to this issue? this is complete error Traceback :
2022-03-17 22:26:48,497: Internal Server Error: /
Traceback (most recent call last):
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 505, in parse
compile_func = self.tags[command]
KeyError: 'ifequal'
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/core/handlers/base.py", line 220, in _get_response
response = response.render()
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/response.py", line 114, in render
self.content = self.rendered_content
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/response.py", line 92, in rendered_content
return template.render(context, self._request)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/backends/django.py", line 62, in render
return self.template.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 175, in render
return self._render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 167, in _render
return self.nodelist.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 958, in render_annotated
return self.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loader_tags.py", line 208, in render
return template.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 177, in render
return self._render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 167, in _render
return self.nodelist.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 958, in render_annotated
return self.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loader_tags.py", line 157, in render
return compiled_parent._render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 167, in _render
return self.nodelist.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 958, in render_annotated
return self.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in render
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 1000, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in self]))
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 958, in render_annotated
return self.render(context)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loader_tags.py", line 197, in render
template = context.template.engine.select_template(template_name)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/engine.py", line 207, in select_template
return self.get_template(template_name)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/engine.py", line 176, in get_template
template, origin = self.find_template(template_name)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/engine.py", line 158, in find_template
template = loader.get_template(name, skip=skip)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loaders/cached.py", line 57, in get_template
template = super().get_template(template_name, skip)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/loaders/base.py", line 28, in get_template
return Template(
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 154, in __init__
self.nodelist = self.compile_nodelist()
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 200, in compile_nodelist
return parser.parse()
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 513, in parse
raise self.error(token, e)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 511, in parse
compiled_result = compile_func(self, token)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/defaulttags.py", line 854, in do_for
nodelist_loop = parser.parse(
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 507, in parse
self.invalid_block_tag(token, command, parse_until)
File "/home/SocialAI/.local/lib/python3.8/site-packages/django/template/base.py", line 558, in invalid_block_tag
raise self.error(
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 8: 'ifequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag?
2022-03-17 22:26:49,255: OSError: write error