old_contents: """Production settings and globals."""
  
  from __future__ import absolute_import
  
  from os import environ
  
  from .base import *
  
  # Normally you should not import ANYTHING from Django directly
  # into your settings, but ImproperlyConfigured is an exception.
  
  
  # HOST CONFIGURATION
  # See:
  # https://docs.djangoproject.com/en/1.5/releases/1.5/#allowed-hosts-required-in-production
  ALLOWED_HOSTS = ['.ownblock.com']
  # END HOST CONFIGURATION
  
  # EMAIL CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
  EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host
  EMAIL_HOST = environ.get('EMAIL_HOST', 'smtp.gmail.com')
  
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-password
  EMAIL_HOST_PASSWORD = environ.get('EMAIL_HOST_PASSWORD', '')
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-user
  EMAIL_HOST_USER = environ.get('EMAIL_HOST_USER', 'your_email@example.com')
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-port
  EMAIL_PORT = environ.get('EMAIL_PORT', 587)
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix
  EMAIL_SUBJECT_PREFIX = '[%s] ' % SITE_NAME
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-use-tls
  EMAIL_USE_TLS = True
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#server-email
  SERVER_EMAIL = "errors@ownblock.com"
  # END EMAIL CONFIGURATION
  
  
  # CACHE CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
  # memcached will go here, just a placeholder for now
  {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
      }
  }
  # END CACHE CONFIGURATION
  
  # SECRET CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  SECRET_KEY = get_env_setting('SECRET_KEY')
  # END SECRET CONFIGURATION
  
  
  # LOGGING CONFIGURATION
  LOGGING['handlers']['file'] = {
      'level': 'ERROR',
      'filters': ['require_debug_false'],
      'class': 'logging.RotatingFileHandler',
      'filename': normpath(join(SITE_ROOT, 'logs'), 'error.log'),
  }
  LOGGING['loggers']['django.request']['handlers'].append('file')
  # END LOGGING CONFIGURATION
  
new_contents: """Production settings and globals."""
  
  from __future__ import absolute_import
  
  from os import environ
  
  from .base import *
  
  # Normally you should not import ANYTHING from Django directly
  # into your settings, but ImproperlyConfigured is an exception.
  
  
  # HOST CONFIGURATION
  # See:
  # https://docs.djangoproject.com/en/1.5/releases/1.5/#allowed-hosts-required-in-production
  ALLOWED_HOSTS = ['.ownblock.com']
  # END HOST CONFIGURATION
  
  # EMAIL CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
  EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host
  EMAIL_HOST = environ.get('EMAIL_HOST', 'smtp.gmail.com')
  
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-password
  EMAIL_HOST_PASSWORD = environ.get('EMAIL_HOST_PASSWORD', '')
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-host-user
  EMAIL_HOST_USER = environ.get('EMAIL_HOST_USER', 'your_email@example.com')
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-port
  EMAIL_PORT = environ.get('EMAIL_PORT', 587)
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix
  EMAIL_SUBJECT_PREFIX = '[%s] ' % SITE_NAME
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-use-tls
  EMAIL_USE_TLS = True
  
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#server-email
  SERVER_EMAIL = "errors@ownblock.com"
  # END EMAIL CONFIGURATION
  
  
  # CACHE CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
  # memcached will go here, just a placeholder for now
  {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
      }
  }
  # END CACHE CONFIGURATION
  
  # SECRET CONFIGURATION
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  SECRET_KEY = get_env_setting('SECRET_KEY')
  # END SECRET CONFIGURATION
  
  
  # LOGGING CONFIGURATION
  LOGGING['handlers']['file'] = {
      'level': 'ERROR',
      'filters': ['require_debug_false'],
      'class': 'logging.RotatingFileHandler',
      'filename': normpath(join(SITE_ROOT, 'logs', 'error.log')),
  }
  LOGGING['loggers']['django.request']['handlers'].append('file')
  # END LOGGING CONFIGURATION
  
subject: Add file handling to logging