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: