summaryrefslogtreecommitdiffstats
path: root/takahe
diff options
context:
space:
mode:
Diffstat (limited to 'takahe')
-rw-r--r--takahe/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/takahe/settings.py b/takahe/settings.py
index 4e09a10..91bfe7b 100644
--- a/takahe/settings.py
+++ b/takahe/settings.py
@@ -190,7 +190,7 @@ MIDDLEWARE = [
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django_htmx.middleware.HtmxMiddleware",
- "core.middleware.AcceptMiddleware",
+ "core.middleware.HeadersMiddleware",
"core.middleware.ConfigLoadingMiddleware",
"api.middleware.ApiTokenMiddleware",
"users.middleware.IdentityMiddleware",
@@ -274,6 +274,10 @@ STATICFILES_FINDERS = [
STATICFILES_DIRS = [BASE_DIR / "static"]
+STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
+
+WHITENOISE_MAX_AGE = 3600
+
STATIC_ROOT = BASE_DIR / "static-collected"
ALLOWED_HOSTS = SETUP.ALLOWED_HOSTS