old_contents: # Django settings for testproject project.
  
  from path import path
  import django
  
  PROJECT_DIR = path(__file__).dirname()
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  DEBUG_PROPAGATE_EXCEPTIONS = True
  
  ALLOWED_HOSTS = ['*']
  
  ADMINS = (
      # ('Your Name', 'your_email@domain.com'),
  )
  
  MANAGERS = ADMINS
  
  SOUTH_TESTS_MIGRATE = False
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': 'memory'
      }
  }
  
  
  TIME_ZONE = 'Europe/London'
  LANGUAGE_CODE = 'en-uk'
  SITE_ID = 1
  USE_I18N = True
  USE_L10N = True
  
  MEDIA_ROOT = ''
  MEDIA_URL = ''
  
  # Make this unique, and don't share it with anybody.
  SECRET_KEY = 'u@x-aj9(hoh#rb-^ymf#g2jx_hp0vj7u5#b@ag1n^seu9e!%cy'
  
  # List of callables that know how to import templates from various sources.
  TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  )
  
  ROOT_URLCONF = 'urls'
  
  
  if django.VERSION <= (1, 8):
      TEMPLATE_DIRS = (
          PROJECT_DIR / 'templates',
      )
  
  else:
      TEMPLATES = [
          {
              'BACKEND': 'django.template.backends.django.DjangoTemplates',
              'DIRS': [
                  PROJECT_DIR / 'templates',
              ],
              'APP_DIRS': True,
              'OPTIONS': {
                  'context_processors': [
                      'django.contrib.auth.context_processors.auth',
                      'django.template.context_processors.debug',
                      'django.template.context_processors.i18n',
                      'django.template.context_processors.media',
                      'django.template.context_processors.static',
                      'django.template.context_processors.tz',
                      'django.contrib.messages.context_processors.messages',
                  ],
              },
          },
      ]
  
  
  INSTALLED_APPS = (
      'django.contrib.sites',
      'mail_templated',
  )
  
  STATIC_URL = '/static/'
  
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  
new_contents: # Django settings for testproject project.
  
  from path import Path
  import django
  
  PROJECT_DIR = Path(__file__).dirname()
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  DEBUG_PROPAGATE_EXCEPTIONS = True
  
  ALLOWED_HOSTS = ['*']
  
  ADMINS = (
      # ('Your Name', 'your_email@domain.com'),
  )
  
  MANAGERS = ADMINS
  
  SOUTH_TESTS_MIGRATE = False
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': 'memory'
      }
  }
  
  
  TIME_ZONE = 'Europe/London'
  LANGUAGE_CODE = 'en-uk'
  SITE_ID = 1
  USE_I18N = True
  USE_L10N = True
  
  MEDIA_ROOT = ''
  MEDIA_URL = ''
  
  # Make this unique, and don't share it with anybody.
  SECRET_KEY = 'u@x-aj9(hoh#rb-^ymf#g2jx_hp0vj7u5#b@ag1n^seu9e!%cy'
  
  # List of callables that know how to import templates from various sources.
  TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  )
  
  ROOT_URLCONF = 'urls'
  
  
  if django.VERSION <= (1, 8):
      TEMPLATE_DIRS = (
          PROJECT_DIR / 'templates',
      )
  
  else:
      TEMPLATES = [
          {
              'BACKEND': 'django.template.backends.django.DjangoTemplates',
              'DIRS': [
                  PROJECT_DIR / 'templates',
              ],
              'APP_DIRS': True,
              'OPTIONS': {
                  'context_processors': [
                      'django.contrib.auth.context_processors.auth',
                      'django.template.context_processors.debug',
                      'django.template.context_processors.i18n',
                      'django.template.context_processors.media',
                      'django.template.context_processors.static',
                      'django.template.context_processors.tz',
                      'django.contrib.messages.context_processors.messages',
                  ],
              },
          },
      ]
  
  
  INSTALLED_APPS = (
      'django.contrib.sites',
      'mail_templated',
  )
  
  STATIC_URL = '/static/'
  
  EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  
subject: Fix issue with path