old_contents: def pytest_configure():
      import django
      from django.conf import settings
  
      settings.configure(
          DEBUG_PROPAGATE_EXCEPTIONS=True,
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': ':memory:'
              }
          },
          SITE_ID=1,
          SECRET_KEY='secret',
          # USE_I18N=True,
          # USE_L10N=True,
          # STATIC_URL='/static/',
          ROOT_URLCONF='tests.urls',
          # TEMPLATE_LOADERS=(
          #     'django.template.loaders.filesystem.Loader',
          #     'django.template.loaders.app_directories.Loader',
          # ),
          MIDDLEWARE_CLASSES=(
              'django.middleware.common.CommonMiddleware',
              'django.contrib.sessions.middleware.SessionMiddleware',
              'django.contrib.auth.middleware.AuthenticationMiddleware',
              'django.contrib.messages.middleware.MessageMiddleware',
          ),
          INSTALLED_APPS=(
              'django.contrib.auth',
              'django.contrib.contenttypes',
              'django.contrib.sessions',
              'django.contrib.sites',
              'django.contrib.staticfiles',
          ),
          # PASSWORD_HASHERS=(
          #     'django.contrib.auth.hashers.MD5PasswordHasher',
          # ),
      )
  
      django.setup()
  
new_contents: def pytest_configure():
      import django
      from django.conf import settings
  
      settings.configure(
          DEBUG_PROPAGATE_EXCEPTIONS=True,
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': ':memory:'
              }
          },
          SITE_ID=1,
          SECRET_KEY='secret',
          ROOT_URLCONF='tests.urls',
          MIDDLEWARE_CLASSES=(
              'django.middleware.common.CommonMiddleware',
              'django.contrib.sessions.middleware.SessionMiddleware',
              'django.contrib.auth.middleware.AuthenticationMiddleware',
              'django.contrib.messages.middleware.MessageMiddleware',
          ),
          INSTALLED_APPS=(
              'django.contrib.auth',
              'django.contrib.contenttypes',
              'django.contrib.sessions',
              'django.contrib.sites',
              'django.contrib.staticfiles',
          ),
      )
  
      django.setup()
  
subject: remove commented code from conftest