Skip to content

Commit

Permalink
Various tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
trickeydan committed Dec 28, 2023
1 parent 936483f commit 430a8bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kmicms/core/templatetags/brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down
14 changes: 9 additions & 5 deletions kmicms/kmicms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()})",
)

#
Expand Down Expand Up @@ -231,9 +231,6 @@
# https://docs.djangoproject.com/en/4.2/topics/i18n/

USE_I18N = True

USE_L10N = True

USE_TZ = True

MESSAGE_TAGS = {
Expand Down Expand Up @@ -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/"
Expand Down

0 comments on commit 430a8bb

Please sign in to comment.