old_contents: """
  Django settings for the production environment of Project Moore.
  
  For more information regarding running in production see,
  See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.10/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.10/ref/settings/
  """
  from __future__ import absolute_import, unicode_literals
  
  from .base import *
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = os.environ.get(
      'DJANGO_SECRET',
      'za7^0@54n&p-dg4)_l12q_3^o5awz_uym0osqaz2!myki_8kw0'
  )
  
  # Database
  # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': os.environ.get('DJANGO_DB'),
          'USER': os.environ.get('DJANGO_DB_USER'),
          'PASSWORD': os.environ.get('DJANGO_DB_PASS'),
          'HOST': os.environ.get('DJANGO_DB_HOST', '127.0.0.1'),
          'PORT':  os.environ.get('DJANGO_DB_PORT', '5432'),
      }
  }
  
  # Base URL to use when referring to full URLs within the Wagtail admin
  # backend - e.g. in notification emails. Don't include '/admin' or a
  # trailing slash
  BASE_URL = 'https://dev.utn.se'
  
  DEFAULT_FROM_EMAIL = 'info@utn.se'
  
  # Admins - will be sent error messages
  ADMINS = [('UTN System Administrator', 'admin@utn.se')]
  
  try:
      from .local import *
  except ImportError:
      pass
  
new_contents: """
  Django settings for the production environment of Project Moore.
  
  For more information regarding running in production see,
  See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.10/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.10/ref/settings/
  """
  from __future__ import absolute_import, unicode_literals
  
  from .base import *
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = os.environ.get(
      'DJANGO_SECRET',
      'za7^0@54n&p-dg4)_l12q_3^o5awz_uym0osqaz2!myki_8kw0'
  )
  
  # Database
  # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': os.environ.get('DJANGO_DB'),
          'USER': os.environ.get('DJANGO_DB_USER'),
          'PASSWORD': os.environ.get('DJANGO_DB_PASS'),
          'HOST': os.environ.get('DJANGO_DB_HOST', '127.0.0.1'),
          'PORT':  os.environ.get('DJANGO_DB_PORT', '5432'),
      }
  }
  
  # CONN_MAX_AGE = 0
  
  # Base URL to use when referring to full URLs within the Wagtail admin
  # backend - e.g. in notification emails. Don't include '/admin' or a
  # trailing slash
  BASE_URL = 'https://dev.utn.se'
  
  ALLOWED_HOSTS = ['.utn.se']
  
  # Email settings
  DEFAULT_FROM_EMAIL = 'info@utn.se'
  
  EMAIL_SUBJECT_PREFIX = '[UTN] '
  
  # Admins - will be sent error messages
  ADMINS = [('UTN System Administrator', 'admin@utn.se')]
  
  LOGGING_CONFIG = None
  
  # TODO: HTTPS security
  # CSRF_COOKIE_SECURE = True
  #
  # SESSION_COOKIE_SECURE = True
  
  try:
      from .local import *
  except ImportError:
      pass
  
subject: Add settings for production use in environment