old_contents: import os
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
  
  DEBUG = True
  TEMPLATE_DEBUG = True
  
  SECRET_KEY = 'test'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  MIDDLEWARE_CLASSES = []
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
  
      'floppyforms',
      'anylink',
      'easy_thumbnails',
      'filer',
  )
  
  TEMPLATE_DIRS = (
      os.path.join(BASE_DIR, 'markymark', 'templates'),
  )
  
  STATIC_URL = '/'
  MEDIA_URL = '/'
  
  ANYLINK_EXTENSIONS = (
      'anylink.extensions.ExternalLink',
  )
  
new_contents: import os
  import tempfile
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
  
  DEBUG = True
  TEMPLATE_DEBUG = True
  
  SECRET_KEY = 'test'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': ':memory:',
      }
  }
  
  MIDDLEWARE_CLASSES = []
  
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
  
      'floppyforms',
      'anylink',
      'easy_thumbnails',
      'filer',
  )
  
  TEMPLATE_DIRS = (
      os.path.join(BASE_DIR, 'markymark', 'templates'),
  )
  
  STATIC_URL = '/'
  MEDIA_URL = '/'
  
  ANYLINK_EXTENSIONS = (
      'anylink.extensions.ExternalLink',
  )
  
  MEDIA_ROOT = tempfile.mkdtemp()
  
subject: Set MEDIA_ROOT in test settings to a temporary directory.