old_contents: import os
  
  from .base import *
  
  DEBUG = False
  TEMPLATE_DEBUG = DEBUG
  
  ADMINS = (
      ('Sym Roe', 'lmtools@talusdesign.co.uk'),
  )
  
  MANAGERS = ADMINS
  
  ALLOWED_HOSTS = ['.herokuapp.com']
  
  
  import dj_database_url
  DATABASES['default'] = dj_database_url.config()
  DATABASES['default']['ENGINE'] = 'django_postgrespool'
  
  STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
  
  DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
  AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID']
  AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY']
  AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME']
  AWS_S3_HOST = os.environ['AWS_S3_HOST']
  
  REDIS_URL = os.environ['REDISCLOUD_URL']
  
  EMAIL_HOST = 'smtp.sendgrid.net'
  EMAIL_PORT = 587
  EMAIL_USE_TLS = True
  EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']
  EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD']
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'handlers': {
          'console': {
              'level': 'DEBUG',
              'class': 'logging.StreamHandler',
          },
      },
      'root': {
          'handlers': ['console'],
          'level': 'INFO',
      },
      'loggers': {
          'django.request': {  # debug logging of things that break requests
              'handlers': ['console'],
              'level': 'DEBUG',
              'propagate': True,
          },
          'report.tasks': {  # debug logging of report tasks
              'handlers': ['console'],
              'level': 'INFO',
              'propagate': True,
          },
      },
  }
  
new_contents: import os
  
  from .base import *
  
  DEBUG = False
  TEMPLATE_DEBUG = DEBUG
  
  ADMINS = (
      ('Sym Roe', 'lmtools@talusdesign.co.uk'),
  )
  
  MANAGERS = ADMINS
  
  ALLOWED_HOSTS = ['.herokuapp.com']
  
  
  import dj_database_url
  DATABASES['default'] = dj_database_url.config()
  DATABASES['default']['ENGINE'] = 'django_postgrespool'
  
  DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
  AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID']
  AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY']
  AWS_STORAGE_BUCKET_NAME = os.environ['AWS_STORAGE_BUCKET_NAME']
  AWS_S3_HOST = os.environ['AWS_S3_HOST']
  
  REDIS_URL = os.environ['REDISCLOUD_URL']
  
  EMAIL_HOST = 'smtp.sendgrid.net'
  EMAIL_PORT = 587
  EMAIL_USE_TLS = True
  EMAIL_HOST_USER = os.environ['SENDGRID_USERNAME']
  EMAIL_HOST_PASSWORD = os.environ['SENDGRID_PASSWORD']
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'handlers': {
          'console': {
              'level': 'DEBUG',
              'class': 'logging.StreamHandler',
          },
      },
      'root': {
          'handlers': ['console'],
          'level': 'INFO',
      },
      'loggers': {
          'django.request': {  # debug logging of things that break requests
              'handlers': ['console'],
              'level': 'DEBUG',
              'propagate': True,
          },
          'report.tasks': {  # debug logging of report tasks
              'handlers': ['console'],
              'level': 'INFO',
              'propagate': True,
          },
      },
  }
  
subject: Use Django Pipeline static file storage on Heroku