From edc2e484e09b1d5dda0fe45b842335c34e08bb43 Mon Sep 17 00:00:00 2001 From: clavay Date: Thu, 16 Nov 2023 09:38:18 +0100 Subject: [PATCH] default STATIC_URL with / if no STATIC_URL in settings, default should url be between / --- pyscada/hmi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyscada/hmi/views.py b/pyscada/hmi/views.py index 7625de96..05dd3260 100644 --- a/pyscada/hmi/views.py +++ b/pyscada/hmi/views.py @@ -232,7 +232,7 @@ def view(request, link_title): page_template = get_template("content_page.html") widget_row_template = get_template("widget_row.html") STATIC_URL = ( - str(settings.STATIC_URL) if hasattr(settings, "STATIC_URL") else "static" + str(settings.STATIC_URL) if hasattr(settings, "STATIC_URL") else "/static/" ) try: