1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00

chore(deps): the icons come from the committed cache, not django-bootstrap-icons

django-bootstrap-icons (last release July 2024) only read the SVG of
each {% bs_icon %} from static/icon_cache; for an icon not there it
fetched the SVG from a CDN while rendering the page, and it brought
defusedxml along. A 20-line template tag in webvirtcloud reads the
same files; the package, its CDN path and the BS_ICONS_CACHE setting
go. requests stays: websockify needs it.
This commit is contained in:
catborise 2026-11-05 12:07:10 +03:00
parent 5174c54982
commit 0f0f493a17
5 changed files with 39 additions and 12 deletions

View file

@ -62,7 +62,6 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
"django_bootstrap5",
"django_bootstrap_icons",
"django_otp",
"django_otp.plugins.otp_totp",
"drf_spectacular",
@ -127,6 +126,7 @@ TEMPLATES = [
],
"libraries": {
"common_tags": "webvirtcloud.common_tags",
"bootstrap_icons": "webvirtcloud.bootstrap_icons",
},
},
},
@ -227,8 +227,6 @@ STATICFILES_DIRS = [BASE_DIR / "static"]
STATIC_ROOT = BASE_DIR / "staticfiles"
BS_ICONS_CACHE = Path.joinpath(BASE_DIR, 'static/icon_cache')
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field