old_contents: from .base import *
  from .grains.logging import LOGGING
  from .grains.aws import *
  from .grains.sentry import *
  from .grains.cache import *
  
  # Google Analytics settings
  GOOGLE_TAG_MANAGER = False
  
  DEBUG = False
  
  STATICFILES_DIRS = ()
  
  MIDDLEWARE_CLASSES = (
      (
          "django.middleware.common.BrokenLinkEmailsMiddleware",
          "django.middleware.cache.UpdateCacheMiddleware",
      )
      + MIDDLEWARE_CLASSES
      + ("django.middleware.cache.FetchFromCacheMiddleware",)
  )
  
  # Makes session cookie work over HTTPS only
  SESSION_COOKIE_SECURE = True
  
  SERVER_EMAIL = "errors@madewithwagtail.org"
  
  # Tasks
  TASKS_MAX_HOURS_RETRY = 72
  TASKS_MAX_RETRIES = 12 * TASKS_MAX_HOURS_RETRY  # Keep trying in the next 72 hours
  TASKS_RETRY_DELAY = 5 * 60  # 5 minutes delay
  
  
  CACHE_MIDDLEWARE_SECONDS = 86400  # 24 hours
  CACHE_TEMPLATE_FRAGMENTS_SECONDS = 86400  # 24 hours
  
  # Make sure we include the needed Middleware apps
  # Excluding logged in (admin) requests
  CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
  
  SECURE_HSTS_SECONDS = 31536000
  
new_contents: from .base import *
  from .grains.aws import *
  from .grains.cache import *
  from .grains.logging import LOGGING
  from .grains.sentry import *
  
  # Google Analytics settings
  GOOGLE_TAG_MANAGER = False
  
  DEBUG = False
  
  STATICFILES_DIRS = ()
  
  MIDDLEWARE = (
      (
          "django.middleware.common.BrokenLinkEmailsMiddleware",
          "django.middleware.cache.UpdateCacheMiddleware",
      )
      + MIDDLEWARE
      + ("django.middleware.cache.FetchFromCacheMiddleware",)
  )
  
  # Makes session cookie work over HTTPS only
  SESSION_COOKIE_SECURE = True
  
  SERVER_EMAIL = "errors@madewithwagtail.org"
  
  # Tasks
  TASKS_MAX_HOURS_RETRY = 72
  TASKS_MAX_RETRIES = 12 * TASKS_MAX_HOURS_RETRY  # Keep trying in the next 72 hours
  TASKS_RETRY_DELAY = 5 * 60  # 5 minutes delay
  
  
  CACHE_MIDDLEWARE_SECONDS = 86400  # 24 hours
  CACHE_TEMPLATE_FRAGMENTS_SECONDS = 86400  # 24 hours
  
  # Make sure we include the needed Middleware apps
  # Excluding logged in (admin) requests
  CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
  
  SECURE_HSTS_SECONDS = 31536000
  
subject: Fix reference to older middleware classes in hosting.py