[GH-ISSUE #604] django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 163: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag? in /computes/<id>/storage/<storname> #354

Closed
opened 2026-02-27 15:58:21 +03:00 by kerem · 0 comments
Owner

Originally created by @lbbMHz on GitHub (Sep 25, 2023).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/604

Hello.

Bug:
exception in /computes/{id}/storage/{stor-id}/
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 163: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag?

Manifestation:
500 Server error in /computes/{id}/storage/{stor-name}/

reason:
'ifnotequal' is deprecated and removed from django templates in 4.0
https://docs.djangoproject.com/en/4.0/internals/deprecation/#section-3

how to fix:

file \storages\templates\storage.html
line 163 replace {% ifnotequal volume.type "iso" %} = > {% if volume.type != "iso" %}
line 171 replace {% endifnotequal %} = > {% endif %}

Good luck :)

Originally created by @lbbMHz on GitHub (Sep 25, 2023). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/604 Hello. Bug: exception in /computes/{id}/storage/{stor-id}/ django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 163: 'ifnotequal', expected 'empty' or 'endfor'. Did you forget to register or load this tag? Manifestation: 500 Server error in /computes/{id}/storage/{stor-name}/ reason: 'ifnotequal' is deprecated and removed from django templates in 4.0 https://docs.djangoproject.com/en/4.0/internals/deprecation/#section-3 how to fix: file \storages\templates\storage.html line 163 replace {% ifnotequal volume.type "iso" %} = > {% if volume.type != "iso" %} line 171 replace {% endifnotequal %} = > {% endif %} Good luck :)
kerem closed this issue 2026-02-27 15:58:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#354
No description provided.