mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[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
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 :)