From 993ad598be9f40400dad41d6c3682cb82991fd62 Mon Sep 17 00:00:00 2001 From: Brocas Mathieu Date: Sat, 12 Aug 2023 07:11:04 +0000 Subject: [PATCH] Actualiser Reskreen/settings.py --- Reskreen/settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Reskreen/settings.py b/Reskreen/settings.py index 53edc06..1abd83d 100644 --- a/Reskreen/settings.py +++ b/Reskreen/settings.py @@ -205,7 +205,7 @@ USE_L10N = False # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.0/howto/static-files/ -STATIC_URL = 'https://statics.ambulance-clerc.ch/static/' +STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), @@ -383,6 +383,11 @@ JAZZMIN_UI_TWEAKS = { }, } + +# Simplified static file serving. +# https://pypi.org/project/whitenoise/ +STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' + if cfg_dev_mode: NEXTCLOUD_HOST = "cloud.ambulance-clerc.ch" else: