Skip to content

Commit

Permalink
Move CanonicalDomainMiddleware to base settings
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Nov 23, 2023
1 parent c912bc1 commit 78883af
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
Expand Down
5 changes: 0 additions & 5 deletions config/settings/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
}
}

MIDDLEWARE += [
# other middlewares...
'django_user_agents.middleware.UserAgentMiddleware',
]

TEMPLATES += [
{
'NAME': 'ubyssey',
Expand Down
4 changes: 0 additions & 4 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
}
}

MIDDLEWARE += [
'canonical_domain.middleware.CanonicalDomainMiddleware',
]

ADS_TXT_URL = 'https://ubyssey.storage.googleapis.com/ads.txt'

# GCS File Storage - Production Only
Expand Down

0 comments on commit 78883af

Please sign in to comment.