old_contents: from lutrisweb.settings.base import *  # noqa
  
  DEBUG = False
  MEDIA_URL = '//lutris.net/media/'
  FILES_ROOT = '/srv/files'
  FILES_URL = 'https://lutris.net/files/'
  
  ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', '0.0.0.0']
  
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
          'LOCATION': '127.0.0.1:11211',
      }
  }
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': os.environ["POSTGRES_DB"],
          'USER': os.environ["POSTGRES_USER"],
          'PASSWORD': os.environ['POSTGRES_PASSWORD'],
          'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
          'CONN_MAX_AGE': 600,
      }
  }
  
  EMAIL_HOST = os.environ['EMAIL_HOST']
  EMAIL_HOST_USER = os.environ['EMAIL_HOST_USER']
  EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD']
  EMAIL_USE_TLS = True
  EMAIL_PORT = int(os.environ.get("EMAIL_HOST_PORT", 25))
  
  STATICFILES_STORAGE = (
      'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
  )
  
  TEMPLATE_LOADERS = (
      ('django.template.loaders.cached.Loader', (
          'django.template.loaders.filesystem.Loader',
          'django.template.loaders.app_directories.Loader',
      )),
  )
  
  SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
  
  REST_FRAMEWORK['DEFAULT_THROTTLE_RATES'] = {
      'anon': '10/min',
      'user': '50/min'
  }
  
  STEAM_API_KEY = os.environ['STEAM_API_KEY']
  
  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  
new_contents: from lutrisweb.settings.base import *  # noqa
  
  DEBUG = False
  MEDIA_URL = '//lutris.net/media/'
  FILES_ROOT = '/srv/files'
  FILES_URL = 'https://lutris.net/files/'
  
  ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', '0.0.0.0']
  
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
          'LOCATION': '127.0.0.1:11211',
      }
  }
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': os.environ.get("POSTGRES_DB", "lutris"),
          'USER': os.environ.get("POSTGRES_USER", "lutris"),
          'PASSWORD': os.environ.get('POSTGRES_PASSWORD', "admin"),
          'HOST': os.environ.get('POSTGRES_HOST', 'localhost'),
          'CONN_MAX_AGE': 600,
      }
  }
  
  EMAIL_HOST = os.environ.get('EMAIL_HOST')
  EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
  EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
  EMAIL_USE_TLS = True
  EMAIL_PORT = int(os.environ.get("EMAIL_HOST_PORT", 25))
  
  STATICFILES_STORAGE = (
      'django.contrib.staticfiles.storage.CachedStaticFilesStorage'
  )
  
  TEMPLATE_LOADERS = (
      ('django.template.loaders.cached.Loader', (
          'django.template.loaders.filesystem.Loader',
          'django.template.loaders.app_directories.Loader',
      )),
  )
  
  SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
  
  REST_FRAMEWORK['DEFAULT_THROTTLE_RATES'] = {
      'anon': '10/min',
      'user': '50/min'
  }
  
  STEAM_API_KEY = os.environ.get('STEAM_API_KEY')
  
  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  
subject: Make all environment loaded settings optional (at least until everything is stable)