From 6974eae62ed48b530fa236f37de72b37cbd15627 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 30 Oct 2023 15:36:40 +0300 Subject: [PATCH 1/2] static_root and static_dirs fix --- webvirtcloud/settings.py.template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template index 50dce230..befe70da 100644 --- a/webvirtcloud/settings.py.template +++ b/webvirtcloud/settings.py.template @@ -123,11 +123,12 @@ USE_TZ = True STATIC_URL = "/static/" if not DEBUG: - STATIC_ROOT = Path.joinpath(BASE_DIR, "static") -else: - STATICFILES_DIRS = [ - Path.joinpath(BASE_DIR, "static"), - ] + STATIC_ROOT = "" + +STATICFILES_DIRS = [ + Path.joinpath(BASE_DIR, "static"), +] + BS_ICONS_CACHE = Path.joinpath(BASE_DIR, 'static/icon_cache') From 7171a70f75972550f3059cfff7322c6dcc1ecf1f Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 30 Oct 2023 15:56:54 +0300 Subject: [PATCH 2/2] update requirements --- conf/requirements.txt | 14 +++++++------- dev/requirements.txt | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/conf/requirements.txt b/conf/requirements.txt index 64206b85..7fb25f88 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,20 +1,20 @@ -Django==4.2.5 +Django==4.2.6 django_bootstrap5==23.3 -django-bootstrap-icons==0.8.3 +django-bootstrap-icons==0.8.6 django-login-required-middleware==0.9.0 -django-otp==1.2.2 +django-otp==1.2.4 django-qr-code==3.1.1 gunicorn==21.2.0 libsass==0.22.0 -libvirt-python==9.7.0 +libvirt-python==9.8.0 lxml==4.9.3 qrcode==7.4.2 rwlock==0.0.7 websockify==0.11.0 -zipp==3.16.2 +zipp==3.17.0 ldap3==2.9.1 -python-engineio==4.7.0 -python-socketio==5.9.0 +python-engineio==4.8.0 +python-socketio==5.10.0 eventlet==0.33.3 djangorestframework==3.14.0 drf-nested-routers==0.93.4 diff --git a/dev/requirements.txt b/dev/requirements.txt index 0ff16a8a..45c1c6a6 100644 --- a/dev/requirements.txt +++ b/dev/requirements.txt @@ -2,8 +2,8 @@ coverage==7.3.0 django-debug-toolbar==4.2.0 django-debug-toolbar-template-profiler -pycodestyle==2.11.0 +pycodestyle==2.11.1 pyflakes==3.1.0 -pylint==2.17.5 -yapf==0.40.1 -black==23.7.0 +pylint==3.0.2 +yapf==0.40.2 +black==23.10.1