From 77c4f8981bb3c4e38c0f186f82f408f15400c178 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 5 Sep 2023 09:01:59 +0300 Subject: [PATCH 1/2] fix debian qemu package renaming --- dev/libvirt-bootstrap.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev/libvirt-bootstrap.sh b/dev/libvirt-bootstrap.sh index 603b189..139481a 100644 --- a/dev/libvirt-bootstrap.sh +++ b/dev/libvirt-bootstrap.sh @@ -680,8 +680,10 @@ install_debian() { apt-get update || return 1 if [ "$DISTRO_MAJOR_VERSION" -lt 10 ]; then apt-get -y install qemu-kvm libvirt-bin bridge-utils sasl2-bin python-guestfs supervisor || return 1 - else + else [ "$DISTRO_MAJOR_VERSION" -lt 12 ]; then apt-get -y install qemu qemu-kvm qemu-system qemu-utils libvirt-clients libvirt-daemon-system sasl2-bin python3-guestfs virtinst supervisor || return 1 + else + apt-get -y install qemu-system qemu-utils libvirt-clients libvirt-daemon-system sasl2-bin python3-guestfs virtinst supervisor || return 1 fi return 0 } From b58c4ef781ba5da521d798672a5ddf09c9e7c1fa Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 5 Sep 2023 09:08:06 +0300 Subject: [PATCH 2/2] add CSRF_TRUSTED_ORIGINS with django 4 --- webvirtcloud/settings.py.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template index 3c741e2..50dce23 100644 --- a/webvirtcloud/settings.py.template +++ b/webvirtcloud/settings.py.template @@ -15,6 +15,8 @@ DEBUG = False ALLOWED_HOSTS = ["*"] +CSRF_TRUSTED_ORIGINS = ['http://localhost',] + # Application definition INSTALLED_APPS = [ "django.contrib.auth",