diff --git a/server/appunti/base_settings.py b/server/appunti/base_settings.py index 98dde61..776d586 100644 --- a/server/appunti/base_settings.py +++ b/server/appunti/base_settings.py @@ -121,6 +121,15 @@ USE_TZ = True # https://docs.djangoproject.com/en/5.1/howto/static-files/ STATIC_URL = "static/" +STATIC_ROOT = BASE_DIR / "static" +STORAGES = { + "default": { + "BACKEND": "django.core.files.storage.FileSystemStorage", + }, + "staticfiles": { + "BACKEND": "django.contrib.staticfiles.storage.ManifestStaticFilesStorage", + }, +} # Default primary key field type # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field