old_contents: 
  import getpass
  from glob import glob
  import os
  from os import path
  from textwrap import dedent
  #from cinch import cinch_settings
  #from revkom.mixins import FHSDirsMixin
  from cinch.utils import FHSDirs
  
  
  BASE_DIR = path.dirname(path.dirname(__file__))        # [repo]/etc/project_settings.py
  DIRS = FHSDirs(BASE_DIR)
  
  ADMINS = [{
      'username': 'hipikat',
      'full_name': 'Adam Wright',
      'email': 'adam@hipikat.org',
      'shell': '/bin/bash',
      'skeleton_dir': os.path.join(DIRS.ETC_DIR, 'skel-hipikat'),
      'ssh_public_keys': [os.path.join(DIRS.ETC_DIR , 'ssh_public_keys', 'trepp_rsa.pub')],
      'requires_deb_packages': ('screen', 'mosh'),
  }]
  
  ROOT_FQDN = 'hipikat.org'
  LANGUAGE_CODE = 'en-au'
  TIME_ZONE = 'Australia/Perth'
  
  DATABASES = { 
      'default': {
          'USER': 'hipikat',
          'NAME': 'hipikat.org',
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'PASSWORD': 'insecure',
      }   
  }  
  
  REQUIRE_DEB_PACKAGES = (
      'bundler',
  )
  
  PYTHON_VERSION = '2.7.6'
  
  PROJECT_NAME = 'hipikat.org'
  PROJECT_GIT_URL = 'https://github.com/hipikat/hipikat.org.git'
  PROJECT_SHARED_SECRET = os.path.join(DIRS.ETC_DIR, 'shared_secret_rsa')
  PROJECT_SHARED_SECRET_PUB = PROJECT_SHARED_SECRET + '.pub'
  PROJECT_LIBS = { 
      'django-cinch': 'https://github.com/hipikat/django-cinch.git',
      'django-revkom': 'https://github.com/hipikat/django-revkom.git',
      'django-scow': 'https://github.com/hipikat/django-scow.git',
      'feincms-elephantblog': 'https://github.com/hipikat/feincms-elephantblog.git',
  }
  POST_INSTALL = dedent("""
      (cd src/styles && bundle install)
      rm -f $VIRTUAL_ENV/bin/postactivate
      ln -s scripts/export_env.sh $VIRTUAL_ENV/bin/postactivate
      """)
  
  
  # TODO: Migrate this functionality to some generic scow.utils function
  try:
      with open(path.join(DIRS.ETC_LOCAL_DIR, 'USER')) as fab_user_f:
          FABRIC_USER = fab_user_f.read()
  except IOError as ex:
      # Only if the file isn't found; if it's not readable or something, we
      # should re-raise the exception
      import errno
      if ex.errno == errno.ENOENT:
          FABRIC_USER = getpass.getuser()
      else:
          raise
  
new_contents: 
  import getpass
  #from glob import glob
  import os
  from os import path
  from textwrap import dedent
  #from cinch import cinch_settings
  #from revkom.mixins import FHSDirsMixin
  from cinch.utils import FHSDirs
  
  
  BASE_DIR = path.dirname(path.dirname(__file__))        # [repo]/etc/project_settings.py
  DIRS = FHSDirs(BASE_DIR)
  
  ADMINS = [{
      'username': 'hipikat',
      'full_name': 'Adam Wright',
      'email': 'adam@hipikat.org',
      'shell': '/bin/bash',
      'skeleton_dir': os.path.join(DIRS.ETC_DIR, 'skel-hipikat'),
      'ssh_public_keys': [os.path.join(DIRS.ETC_DIR, 'ssh_public_keys', 'trepp_rsa.pub')],
      'requires_deb_packages': ('screen', 'mosh'),
  }]
  
  ROOT_FQDN = 'hipikat.org'
  LANGUAGE_CODE = 'en-au'
  TIME_ZONE = 'Australia/Perth'
  
  DATABASES = {
      'default': {
          'USER': 'hipikat',
          'NAME': 'hipikat.org',
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'PASSWORD': 'insecure',
      }
  }
  
  REQUIRE_DEB_PACKAGES = (
      'bundler',
  )
  
  PYTHON_VERSION = '2.7.6'
  
  PROJECT_NAME = 'hipikat.org'
  PROJECT_GIT_URL = 'https://github.com/hipikat/hipikat.org.git'
  PROJECT_SHARED_SECRET = os.path.join(DIRS.ETC_DIR, 'shared_secret_rsa')
  PROJECT_SHARED_SECRET_PUB = PROJECT_SHARED_SECRET + '.pub'
  PROJECT_LIBS = {
      'django-cinch': 'https://github.com/hipikat/django-cinch.git',
      'django-revkom': 'https://github.com/hipikat/django-revkom.git',
      'django-scow': 'https://github.com/hipikat/django-scow.git',
      'feincms-elephantblog': 'https://github.com/hipikat/feincms-elephantblog.git',
  }
  POST_INSTALL = dedent(r"""
      (cd src/styles && bundle install)
      rm -f $VIRTUAL_ENV/bin/postactivate
      cp {prj_postactivate} $VIRTUAL_ENV/bin/postactivate
      python scripts/make_secret_key.py > var/env/DJANGO_SECRET_KEY
      """.format(prj_postactivate="`cat $VIRTUAL_ENV/$VIRTUALENVWRAPPER_PROJECT_FILENAME`"
                 "/scripts/export_env.sh"))
  
  
  # TODO: Migrate this functionality to some generic scow.utils function
  try:
      with open(path.join(DIRS.ETC_LOCAL_DIR, 'USER')) as fab_user_f:
          FABRIC_USER = fab_user_f.read()
  except IOError as ex:
      # Only if the file isn't found; if it's not readable or something, we
      # should re-raise the exception
      import errno
      if ex.errno == errno.ENOENT:
          FABRIC_USER = getpass.getuser()
      else:
          raise
  
subject: Fix config (for scow)