old_contents: from madewithwagtail.settings import *
  
  from .paths import *
  
  # Site name:
  SITE_NAME = basename(DJANGO_ROOT)
  
  ALLOWED_HOSTS = ADDRESSES  # set by env vars
  
  # Application definition
  SITE_ID = 1
  
  INSTALLED_APPS = (
      "django.contrib.admin",
      "django.contrib.auth",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.messages",
      "django.contrib.staticfiles",
      "django.contrib.sites",
      "taggit",
      "modelcluster",
      "captcha",
      "wagtailcaptcha",
      "core",
      "api",
      "wagtailgmaps",
      "rest_framework",
      "wagtail.contrib.sitemaps",
      "wagtail.contrib.routable_page",
      "wagtail.core",
      "wagtail.admin",
      "wagtail.documents",
      "wagtail.snippets",
      "wagtail.users",
      "wagtail.sites",
      "wagtail.images",
      "wagtail.embeds",
      "wagtail.search",
      "wagtail.contrib.redirects",
      "wagtail.contrib.forms",
  )
  
  
  MIDDLEWARE = (
      "django.middleware.security.SecurityMiddleware",
      "django.middleware.cache.UpdateCacheMiddleware",
      "django.middleware.http.ConditionalGetMiddleware",
      "django.middleware.common.CommonMiddleware",
      "django.contrib.sessions.middleware.SessionMiddleware",
      "django.middleware.csrf.CsrfViewMiddleware",
      "django.contrib.auth.middleware.AuthenticationMiddleware",
      "django.contrib.messages.middleware.MessageMiddleware",
      "django.middleware.clickjacking.XFrameOptionsMiddleware",
      "django.middleware.cache.FetchFromCacheMiddleware",
      "wagtail.contrib.redirects.middleware.RedirectMiddleware",
  )
  
  # Name and email addresses of recipients
  ADMINS = (("Tech-urgent", "tech-urgent@springload.co.nz"),)
  
  ROOT_URLCONF = SITE_NAME + ".urls"
  WSGI_APPLICATION = SITE_NAME + ".wsgi.application"
  
  #
  TAGGIT_CASE_INSENSITIVE = True
  
  if not DEBUG:
      CSRF_COOKIE_HTTPONLY = True
      CSRF_COOKIE_SECURE = True
      CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
  
  # Auto-created primary keys
  DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
  
new_contents: from madewithwagtail.settings import *
  
  from .paths import *
  
  # Site name:
  SITE_NAME = basename(DJANGO_ROOT)
  
  ALLOWED_HOSTS = ADDRESSES  # set by env vars
  
  # Application definition
  SITE_ID = 1
  
  INSTALLED_APPS = (
      "django.contrib.admin",
      "django.contrib.auth",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.messages",
      "django.contrib.staticfiles",
      "django.contrib.sites",
      "django.contrib.sitemaps",
      "taggit",
      "modelcluster",
      "captcha",
      "wagtailcaptcha",
      "core",
      "api",
      "wagtailgmaps",
      "rest_framework",
      "wagtail.contrib.sitemaps",
      "wagtail.contrib.routable_page",
      "wagtail.core",
      "wagtail.admin",
      "wagtail.documents",
      "wagtail.snippets",
      "wagtail.users",
      "wagtail.sites",
      "wagtail.images",
      "wagtail.embeds",
      "wagtail.search",
      "wagtail.contrib.redirects",
      "wagtail.contrib.forms",
  )
  
  
  MIDDLEWARE = (
      "django.middleware.security.SecurityMiddleware",
      "django.middleware.cache.UpdateCacheMiddleware",
      "django.middleware.http.ConditionalGetMiddleware",
      "django.middleware.common.CommonMiddleware",
      "django.contrib.sessions.middleware.SessionMiddleware",
      "django.middleware.csrf.CsrfViewMiddleware",
      "django.contrib.auth.middleware.AuthenticationMiddleware",
      "django.contrib.messages.middleware.MessageMiddleware",
      "django.middleware.clickjacking.XFrameOptionsMiddleware",
      "django.middleware.cache.FetchFromCacheMiddleware",
      "wagtail.contrib.redirects.middleware.RedirectMiddleware",
  )
  
  # Name and email addresses of recipients
  ADMINS = (("Tech-urgent", "tech-urgent@springload.co.nz"),)
  
  ROOT_URLCONF = SITE_NAME + ".urls"
  WSGI_APPLICATION = SITE_NAME + ".wsgi.application"
  
  #
  TAGGIT_CASE_INSENSITIVE = True
  
  if not DEBUG:
      CSRF_COOKIE_HTTPONLY = True
      CSRF_COOKIE_SECURE = True
      CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS
  
  # Auto-created primary keys
  DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
  
subject: Fix sitemaps by including the django.contrib application