old_contents: from os.path import expanduser
  
  DEBUG = True
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'jmbo_post',
          'USER': 'postgres',
          'PASSWORD': '',
          'HOST': '',
          'PORT': '',
      }
  }
  
  INSTALLED_APPS = (
      'post',
      'django.contrib.auth',
      'django.contrib.comments',
      'django.contrib.contenttypes',
      'django.contrib.sites',
      'django.contrib.admin',
      'category',
      'jmbo',
      'photologue',
      'likes',
      'secretballot',
      'pagination',
      'publisher',
      'south',
  )
  
  MIDDLEWARE_CLASSES = (
      'django.middleware.common.CommonMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'likes.middleware.SecretBallotUserIpUseragentMiddleware',
      'pagination.middleware.PaginationMiddleware',
  )
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      'django.contrib.auth.context_processors.auth',
      'django.core.context_processors.debug',
      'django.core.context_processors.i18n',
      'django.core.context_processors.media',
      'django.core.context_processors.static',
      'django.core.context_processors.tz',
      'django.core.context_processors.request',
      'django.contrib.messages.context_processors.messages',
  )
  
  USE_TZ = True
  
  SITE_ID = 1
  
  STATIC_URL = '/static/'
  
  CKEDITOR_UPLOAD_PATH = expanduser('~')
  
  SOUTH_TESTS_MIGRATE = False
  
  ROOT_URLCONF = 'post.tests.urls'
  
new_contents: # We're still on Django 1.4 and use django-setuptest. Use this as a starting
  # point for your test settings. Typically copy this file as test_settings.py
  # and replace myapp with your app name.
  
  from os.path import expanduser
  
  DEBUG = True
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'jmbo_post',
          'USER': 'postgres',
          'PASSWORD': '',
          'HOST': '',
          'PORT': '',
      }
  }
  
  INSTALLED_APPS = (
      'post',
      'jmbo',
      'photologue',
      'category',
      'likes',
      'secretballot',
      'pagination',
      'publisher',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.comments',
      'django.contrib.contenttypes',
      'django.contrib.sites',
      'south',
  )
  
  ROOT_URLCONF = 'post.tests.urls'
  
  MIDDLEWARE_CLASSES = (
      'django.middleware.common.CommonMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'likes.middleware.SecretBallotUserIpUseragentMiddleware',
      'pagination.middleware.PaginationMiddleware',
  )
  
  TEMPLATE_CONTEXT_PROCESSORS = (
      'django.contrib.auth.context_processors.auth',
      'django.core.context_processors.debug',
      'django.core.context_processors.i18n',
      'django.core.context_processors.media',
      'django.core.context_processors.static',
      'django.core.context_processors.tz',
      'django.core.context_processors.request',
      'django.contrib.messages.context_processors.messages',
  )
  
  USE_TZ = True
  
  SITE_ID = 1
  
  STATIC_URL = '/static/'
  
  CKEDITOR_UPLOAD_PATH = expanduser('~')
  
  SOUTH_TESTS_MIGRATE = False
  
  # Disable celery
  CELERY_ALWAYS_EAGER = True
  BROKER_BACKEND = 'memory'
  
  
subject: Use latest recommended settings file