old_contents: # In production set the environment variable like this:
  #    DJANGO_SETTINGS_MODULE=my_proj.settings.production
  from .base import *             # NOQA
  import logging.config
  
  # For security and performance reasons, DEBUG is turned off
  DEBUG = False
  
  INSTALLED_APPS += ('postgres',)
  
  # Must mention ALLOWED_HOSTS in production!
  ALLOWED_HOSTS = ["pycontw.krdai.info", "tw.pycon.org", ]
  
  # Cache the templates in memory for speed-up
  loaders = [
      (
          'django.template.loaders.cached.Loader',
          [
              'django.template.loaders.filesystem.Loader',
              'django.template.loaders.app_directories.Loader',
          ]
      ),
  ]
  
  TEMPLATES[0]['OPTIONS'].update({"loaders": loaders})
  TEMPLATES[0]['OPTIONS'].update({"debug": False})
  TEMPLATES[0].update({"APP_DIRS": DEBUG})
  
  # Define STATIC_ROOT for the collectstatic command
  STATIC_ROOT = join(BASE_DIR, 'assets')
  
  # Log everything to the logs directory at the top
  LOGFILE_ROOT = join(dirname(BASE_DIR), 'logs')
  
  # Reset logging
  LOGGING_CONFIG = None
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'verbose': {
              'format': "[%(asctime)s] %(levelname)s [%(pathname)s:%(lineno)s] %(message)s",
              'datefmt': "%d/%b/%Y %H:%M:%S"
          },
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'proj_log_file': {
              'level': 'DEBUG',
              'class': 'logging.FileHandler',
              'filename': join(LOGFILE_ROOT, 'project.log'),
              'formatter': 'verbose'
          },
          'console': {
              'level': 'DEBUG',
              'class': 'logging.StreamHandler',
              'formatter': 'simple'
          }
      },
      'loggers': {
          'project': {
              'handlers': ['proj_log_file'],
              'level': 'DEBUG',
          },
      }
  }
  
  logging.config.dictConfig(LOGGING)
  
  URL_PREFIX = '2016/'
  LOGIN_REDIRECT_URL = '/2016/dashboard/'
  STATIC_URL = '/2016/static/'
  
new_contents: # In production set the environment variable like this:
  #    DJANGO_SETTINGS_MODULE=my_proj.settings.production
  from .base import *             # NOQA
  import logging.config
  
  # For security and performance reasons, DEBUG is turned off
  DEBUG = False
  
  INSTALLED_APPS += ('postgres',)
  
  # Must mention ALLOWED_HOSTS in production!
  ALLOWED_HOSTS = ["pycontw.krdai.info", "tw.pycon.org", ]
  
  # Cache the templates in memory for speed-up
  loaders = [
      (
          'django.template.loaders.cached.Loader',
          [
              'django.template.loaders.filesystem.Loader',
              'django.template.loaders.app_directories.Loader',
          ]
      ),
  ]
  
  TEMPLATES[0]['OPTIONS'].update({"loaders": loaders})
  TEMPLATES[0]['OPTIONS'].update({"debug": False})
  TEMPLATES[0].update({"APP_DIRS": DEBUG})
  
  # Define STATIC_ROOT for the collectstatic command
  STATIC_ROOT = join(BASE_DIR, 'assets')
  
  # Log everything to the logs directory at the top
  LOGFILE_ROOT = join(dirname(BASE_DIR), 'logs')
  
  # Reset logging
  LOGGING_CONFIG = None
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'verbose': {
              'format': (
                  '[%(asctime)s] %(levelname)s '
                  '[%(pathname)s:%(lineno)s] %(message)s'
              ),
              'datefmt': "%d/%b/%Y %H:%M:%S"
          },
          'simple': {
              'format': '%(levelname)s %(message)s'
          },
      },
      'handlers': {
          'proj_log_file': {
              'level': 'DEBUG',
              'class': 'logging.FileHandler',
              'filename': join(LOGFILE_ROOT, 'project.log'),
              'formatter': 'verbose'
          },
          'console': {
              'level': 'DEBUG',
              'class': 'logging.StreamHandler',
              'formatter': 'simple'
          }
      },
      'loggers': {
          'project': {
              'handlers': ['proj_log_file'],
              'level': 'DEBUG',
          },
      }
  }
  
  logging.config.dictConfig(LOGGING)
  
  URL_PREFIX = '2016/'
  
  LOGIN_URL = '/2016/accounts/login/'
  
  LOGOUT_URL = '/2016/accounts/logout/'
  
  LOGIN_REDIRECT_URL = '/2016/dashboard/'
  
  STATIC_URL = '/2016/static/'
  
subject: Fix login and logout URLs on production