old_contents: import os
  
  
  class Config(object):
      DEBUG = False
      ASSETS_DEBUG = False
      cache = False
      manifest = True
  
      NOTIFY_LOG_LEVEL = 'DEBUG'
      NOTIFY_APP_NAME = 'admin'
      NOTIFY_LOG_PATH = '/var/log/notify/application.log'
  
      SQLALCHEMY_COMMIT_ON_TEARDOWN = False
      SQLALCHEMY_RECORD_QUERIES = True
      SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/notifications_admin'
      MAX_FAILED_LOGIN_COUNT = 10
      PASS_SECRET_KEY = 'secret-key-unique-changeme'
  
      SESSION_COOKIE_NAME = 'notify_admin_session'
      SESSION_COOKIE_PATH = '/admin'
      SESSION_COOKIE_HTTPONLY = True
      SESSION_COOKIE_SECURE = False
      PERMANENT_SESSION_LIFETIME = 3600  # seconds
  
      API_HOST_NAME = os.getenv('API_HOST_NAME')
      NOTIFY_API_SECRET = os.getenv('NOTIFY_API_SECRET', "dev-secret")
      NOTIFY_API_CLIENT = os.getenv('NOTIFY_API_CLIENT', "admin")
  
      ADMIN_CLIENT_USER_NAME = os.getenv('ADMIN_CLIENT_USER_NAME')
      ADMIN_CLIENT_SECRET = os.getenv('ADMIN_CLIENT_SECRET')
  
      WTF_CSRF_ENABLED = True
      SECRET_KEY = 'secret-key'
      HTTP_PROTOCOL = 'http'
      DANGEROUS_SALT = 'itsdangeroussalt'
      TOKEN_MAX_AGE_SECONDS = 3600
  
      MAX_CONTENT_LENGTH = 10 * 1024 * 1024  # 10mb
      UPLOAD_FOLDER = '/tmp'
  
      HEADER_COLOUR = '#FFBF47'  # $yellow
  
      AWS_REGION = 'eu-west-1'
      TWILIO_TEST_NUMBER = os.getenv('TWILIO_TEST_NUMBER')
  
  
  class Development(Config):
      DEBUG = True
      API_HOST_NAME = 'http://localhost:6011'
      ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
      ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
      WTF_CSRF_ENABLED = False
  
  
  class Test(Development):
      SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notifications_admin'
      WTF_CSRF_ENABLED = False
  
  
  class Preview(Config):
      DEBUG = False
      HTTP_PROTOCOL = 'https'
      SESSION_COOKIE_SECURE = True
      HEADER_COLOUR = '#F47738'  # $orange
  
  
  class Staging(Preview):
      pass
  
  
  class Live(Staging):
      HEADER_COLOUR = '#B10E1E'  # $red
  
  
  configs = {
      'live': Live,
      'development': Development,
      'test': Test
  }
  
new_contents: import os
  
  
  class Config(object):
      DEBUG = False
      ASSETS_DEBUG = False
      cache = False
      manifest = True
  
      NOTIFY_LOG_LEVEL = 'DEBUG'
      NOTIFY_APP_NAME = 'admin'
      NOTIFY_LOG_PATH = '/var/log/notify/application.log'
  
      SQLALCHEMY_COMMIT_ON_TEARDOWN = False
      SQLALCHEMY_RECORD_QUERIES = True
      SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/notifications_admin'
      MAX_FAILED_LOGIN_COUNT = 10
      PASS_SECRET_KEY = 'secret-key-unique-changeme'
  
      SESSION_COOKIE_NAME = 'notify_admin_session'
      SESSION_COOKIE_PATH = '/admin'
      SESSION_COOKIE_HTTPONLY = True
      SESSION_COOKIE_SECURE = False
      PERMANENT_SESSION_LIFETIME = 3600  # seconds
  
      API_HOST_NAME = os.getenv('API_HOST_NAME')
      NOTIFY_API_SECRET = os.getenv('NOTIFY_API_SECRET', "dev-secret")
      NOTIFY_API_CLIENT = os.getenv('NOTIFY_API_CLIENT', "admin")
  
      ADMIN_CLIENT_USER_NAME = os.getenv('ADMIN_CLIENT_USER_NAME')
      ADMIN_CLIENT_SECRET = os.getenv('ADMIN_CLIENT_SECRET')
  
      WTF_CSRF_ENABLED = True
      SECRET_KEY = 'secret-key'
      HTTP_PROTOCOL = 'http'
      DANGEROUS_SALT = 'itsdangeroussalt'
      TOKEN_MAX_AGE_SECONDS = 3600
  
      MAX_CONTENT_LENGTH = 10 * 1024 * 1024  # 10mb
      UPLOAD_FOLDER = '/tmp'
  
      HEADER_COLOUR = '#FFBF47'  # $yellow
  
      AWS_REGION = 'eu-west-1'
      TWILIO_TEST_NUMBER = os.getenv('TWILIO_TEST_NUMBER')
  
  
  class Development(Config):
      DEBUG = True
      API_HOST_NAME = 'http://localhost:6011'
      ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
      ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
      WTF_CSRF_ENABLED = False
  
  
  class Test(Development):
      SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notifications_admin'
      WTF_CSRF_ENABLED = False
  
  
  class Preview(Config):
      DEBUG = False
      HTTP_PROTOCOL = 'https'
      SESSION_COOKIE_SECURE = True
      HEADER_COLOUR = '#F47738'  # $orange
  
  
  class Staging(Preview):
      pass
  
  
  class Live(Staging):
      HEADER_COLOUR = '#B10E1E'  # $red
  
  
  configs = {
      'development': Development,
      'test': Test,
      'preview': Preview,
      'staging': Staging,
      'live': Live
  }
  
subject: Add all the configs