old_contents: import os
  
  import dj_database_url
  
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  DEBUG = True
  ALLOWED_HOSTS = []
  ROOT_URLCONF = 'groups.tests.urls'
  STATIC_URL = '/static/'
  
  SECRET_KEY = 'krc34ji^-fd-=+r6e%p!0u0k9h$9!q*_#l=6)74h#o(jrxsx4p'
  PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5PasswordHasher',)
  
  DATABASES = {
      'default': dj_database_url.config(default='postgres://localhost/groups')
  }
  DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
  
  INSTALLED_APPS = (
      'groups',
      'groups.tests',
  
      'crispy_forms',
      'pagination',
      'polymorphic',
  
      # Put contenttypes before auth to work around test issue.
      # See: https://code.djangoproject.com/ticket/10827#comment:12
      'django.contrib.contenttypes',
      'django.contrib.auth',
      'django.contrib.admin',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  )
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
  )
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          '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.core.context_processors.request',
                  'django.template.context_processors.static',
                  'django.template.context_processors.tz',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  
  CRISPY_TEMPLATE_PACK = 'bootstrap3'
  
  TEST_RUNNER = 'test_project.test_runner.Runner'
  
new_contents: import os
  
  import dj_database_url
  
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  DEBUG = True
  ALLOWED_HOSTS = []
  ROOT_URLCONF = 'groups.tests.urls'
  STATIC_URL = '/static/'
  
  SECRET_KEY = 'krc34ji^-fd-=+r6e%p!0u0k9h$9!q*_#l=6)74h#o(jrxsx4p'
  PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5PasswordHasher',)
  
  DATABASES = {
      'default': dj_database_url.config(default='postgres://localhost/groups')
  }
  DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'
  
  INSTALLED_APPS = (
      'groups',
      'groups.tests',
  
      'crispy_forms',
      'pagination',
      'polymorphic',
  
      # Put contenttypes before auth to work around test issue.
      # See: https://code.djangoproject.com/ticket/10827#comment:12
      'django.contrib.contenttypes',
      'django.contrib.auth',
      'django.contrib.admin',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  )
  MIDDLEWARE_CLASSES = (
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
  )
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          '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.request',
                  'django.template.context_processors.static',
                  'django.template.context_processors.tz',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  
  CRISPY_TEMPLATE_PACK = 'bootstrap3'
  
  TEST_RUNNER = 'test_project.test_runner.Runner'
  
subject: Update a TEMPLATES entry.