old_contents: import os
  from settings import *
  
  db = os.environ.get('DB')
  
  SECRET_KEY = "This is a test, you don't need secrets"
  
  if db == "sqlite":
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.sqlite3',
              'NAME': ':memory:',
          },
      }
  elif db == "postgres":
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.postgresql_psycopg2',
              'NAME': 'inboxen',
              'USER': 'postgres',
          },
      }
  else:
      raise NotImplementedError("Please check tests/settings.py for valid DB values")
  
new_contents: from __future__ import absolute_import
  import os
  from settings import *
  
  db = os.environ.get('DB')
  
  SECRET_KEY = "This is a test, you don't need secrets"
  
  if db == "sqlite":
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.sqlite3',
              'NAME': ':memory:',
          },
      }
  elif db == "postgres":
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.postgresql_psycopg2',
              'NAME': 'inboxen',
              'USER': 'postgres',
          },
      }
  else:
      raise NotImplementedError("Please check tests/settings.py for valid DB values")
  
subject: Use absolute imports to avoid module naming issues