From 430a8bbe04733128a9993295496f3081012a4f8a Mon Sep 17 00:00:00 2001 From: Dan Trickey Date: Thu, 28 Dec 2023 19:28:38 +0000 Subject: [PATCH] Various tweaks --- kmicms/core/templatetags/brand.py | 2 +- kmicms/kmicms/settings.py | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/kmicms/core/templatetags/brand.py b/kmicms/core/templatetags/brand.py index a1c1e3b..9ad1007 100644 --- a/kmicms/core/templatetags/brand.py +++ b/kmicms/core/templatetags/brand.py @@ -24,7 +24,7 @@ def static_for_brand(parser: Any, token: Any) -> str: Usage:: - {% static path [as varname] %} + {% static_for_brand path [as varname] %} Examples:: diff --git a/kmicms/kmicms/settings.py b/kmicms/kmicms/settings.py index ec9f563..91debbe 100644 --- a/kmicms/kmicms/settings.py +++ b/kmicms/kmicms/settings.py @@ -16,7 +16,7 @@ # Validate Python version if parse_version(platform.python_version()) < parse_version("3.10.0"): # pragma: nocover raise RuntimeError( - f"SOWN CMS requires Python 3.10 or higher (current: Python {platform.python_version()})", + f"KMI-CMS requires Python 3.10 or higher (current: Python {platform.python_version()})", ) # @@ -231,9 +231,6 @@ # https://docs.djangoproject.com/en/4.2/topics/i18n/ USE_I18N = True - -USE_L10N = True - USE_TZ = True MESSAGE_TAGS = { @@ -262,7 +259,14 @@ # ManifestStaticFilesStorage is recommended in production, to prevent outdated # JavaScript / CSS assets being served from cache (e.g. after a Wagtail upgrade). # See https://docs.djangoproject.com/en/4.2/ref/contrib/staticfiles/#manifeststaticfilesstorage -STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" +STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, + "staticfiles": { + "BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage", + }, +} STATIC_ROOT = os.path.join(BASE_DIR, "static") STATIC_URL = "/static/"