WebVirtCloud is virtualization web interface for admins and users
1.7k
stars
372
forks
source link
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> #604
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}/
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 :)