old_contents: import os
  
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  SECRET_KEY = 'groot'
  
  # Static files
  STATIC_URL = '/static/'
  STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
  STATIC_ROOT = os.environ['STATIC_ROOT']
  
  MIDDLEWARE_CLASSES = [
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
  ]
  
  INSTALLED_APPS = [
      'django.contrib.admin.apps.SimpleAdminConfig',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.messages',
      'django.contrib.sessions',
      'django.contrib.staticfiles',
      'groot',
      'guardian',
      'tests',
  ]
  
  ROOT_URLCONF = 'tests.urls'
  
  # Guardian
  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
      'guardian.backends.ObjectPermissionBackend',
  )
  ANONYMOUS_USER_ID = -1
  
  # Speed up password testing
  PASSWORD_HASHERS = [
      'django.contrib.auth.hashers.MD5PasswordHasher',
  ]
  
new_contents: import os
  
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  SECRET_KEY = 'groot'
  
  # Static files
  STATIC_URL = '/static/'
  STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
  STATIC_ROOT = os.environ['STATIC_ROOT']
  
  # Templates (Django 1.8+)
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          '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',
              ],
          },
      },
  ]
  
  MIDDLEWARE_CLASSES = [
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
  ]
  
  INSTALLED_APPS = [
      'django.contrib.admin.apps.SimpleAdminConfig',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.messages',
      'django.contrib.sessions',
      'django.contrib.staticfiles',
      'groot',
      'guardian',
      'tests',
  ]
  
  ROOT_URLCONF = 'tests.urls'
  
  # Guardian
  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
      'guardian.backends.ObjectPermissionBackend',
  )
  ANONYMOUS_USER_ID = -1
  
  # Speed up password testing
  PASSWORD_HASHERS = [
      'django.contrib.auth.hashers.MD5PasswordHasher',
  ]
  
subject: Add TEMPLATES to settings to avoid warnings