diff --git a/config/settings/base.py b/config/settings/base.py index 617668f7a..62f0015b7 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -282,6 +282,7 @@ # Ref: https://github.com/coderedcorp/wagtail-cache/blob/main/docs/getting_started/install.rst#1-install 'wagtailcache.cache.UpdateCacheMiddleware', + 'canonical_domain.middleware.CanonicalDomainMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.gzip.GZipMiddleware', ] diff --git a/config/settings/development.py b/config/settings/development.py index 8d5e185fe..6e1186cb0 100644 --- a/config/settings/development.py +++ b/config/settings/development.py @@ -19,11 +19,6 @@ } } -MIDDLEWARE += [ - # other middlewares... - 'django_user_agents.middleware.UserAgentMiddleware', -] - TEMPLATES += [ { 'NAME': 'ubyssey', diff --git a/config/settings/production.py b/config/settings/production.py index 88a2f3746..98fb5f260 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -43,10 +43,6 @@ } } -MIDDLEWARE += [ - 'canonical_domain.middleware.CanonicalDomainMiddleware', -] - ADS_TXT_URL = 'https://ubyssey.storage.googleapis.com/ads.txt' # GCS File Storage - Production Only