old_contents: from __future__ import absolute_import, unicode_literals
  
  import os
  
  
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
  DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
  
  INSTALLED_APPS = [
      "django.contrib.auth",
      "django.contrib.admin",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.staticfiles",
      "django.contrib.messages",
      "testapp",
      "cabinet",
      "imagefield",
  ]
  
  MEDIA_ROOT = "/media/"
  STATIC_URL = "/static/"
  BASEDIR = os.path.dirname(__file__)
  MEDIA_ROOT = os.path.join(BASEDIR, "media/")
  STATIC_ROOT = os.path.join(BASEDIR, "static/")
  SECRET_KEY = "supersikret"
  TEMPLATES = [
      {
          "BACKEND": "django.template.backends.django.DjangoTemplates",
          "DIRS": [],
          "APP_DIRS": True,
          "OPTIONS": {
              "context_processors": [
                  "django.template.context_processors.debug",
                  "django.template.context_processors.request",
                  "django.contrib.auth.context_processors.auth",
                  "django.contrib.messages.context_processors.messages",
              ]
          },
      }
  ]
  MIDDLEWARE = (
      "django.middleware.common.CommonMiddleware",
      "django.contrib.sessions.middleware.SessionMiddleware",
      "django.middleware.csrf.CsrfViewMiddleware",
      "django.contrib.auth.middleware.AuthenticationMiddleware",
      "django.contrib.messages.middleware.MessageMiddleware",
      "django.middleware.locale.LocaleMiddleware",
  )
  ROOT_URLCONF = "testapp.urls"
  
new_contents: from __future__ import absolute_import, unicode_literals
  
  import os
  
  
  BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  
  DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
  
  INSTALLED_APPS = [
      "django.contrib.auth",
      "django.contrib.admin",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.staticfiles",
      "django.contrib.messages",
      "testapp",
      "cabinet",
      "imagefield",
  ]
  
  MEDIA_ROOT = "/media/"
  STATIC_URL = "/static/"
  BASEDIR = os.path.dirname(__file__)
  MEDIA_ROOT = os.path.join(BASEDIR, "media/")
  STATIC_ROOT = os.path.join(BASEDIR, "static/")
  SECRET_KEY = "supersikret"
  TEMPLATES = [
      {
          "BACKEND": "django.template.backends.django.DjangoTemplates",
          "DIRS": [],
          "APP_DIRS": True,
          "OPTIONS": {
              "context_processors": [
                  "django.template.context_processors.debug",
                  "django.template.context_processors.request",
                  "django.contrib.auth.context_processors.auth",
                  "django.contrib.messages.context_processors.messages",
              ]
          },
      }
  ]
  MIDDLEWARE = (
      "django.middleware.common.CommonMiddleware",
      "django.contrib.sessions.middleware.SessionMiddleware",
      "django.middleware.csrf.CsrfViewMiddleware",
      "django.contrib.auth.middleware.AuthenticationMiddleware",
      "django.contrib.messages.middleware.MessageMiddleware",
      "django.middleware.locale.LocaleMiddleware",
  )
  ROOT_URLCONF = "testapp.urls"
  
  SILENCED_SYSTEM_CHECKS = ["admin.E130"]  # https://code.djangoproject.com/ticket/29917
  
subject: Add a temporary fix for Django ticket 29917