From 6974eae62ed48b530fa236f37de72b37cbd15627 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 30 Oct 2023 15:36:40 +0300 Subject: [PATCH] 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 50dce23..befe70d 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')