old_contents: # Django settings for testproj project.
  
  import os
  import sys
  # import source code dir
  sys.path.insert(0, os.getcwd())
  sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
  
  SITE_ID = 300
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  ROOT_URLCONF = "tests.urls"
  
  ADMINS = (
      # ('Your Name', 'your_email@domain.com'),
  )
  
  TEST_RUNNER = "django_nose.run_tests"
  here = os.path.abspath(os.path.dirname(__file__))
  COVERAGE_EXCLUDE_MODULES = ("djcelery",
                              "djcelery.tests.*",
                              "djcelery.management.*",
                              "djcelery.contrib.*",
  )
  
  NOSE_ARGS = [os.path.join(here, os.pardir, "djcelery", "tests"),
              os.environ.get("NOSE_VERBOSE") and "--verbose" or "",
              "--cover3-package=djcelery",
              "--cover3-branch",
              "--cover3-exclude=%s" % ",".join(COVERAGE_EXCLUDE_MODULES)]
  
  BROKER_HOST = "localhost"
  BROKER_PORT = 5672
  BROKER_VHOST = "/"
  BROKER_USER = "guest"
  BROKER_PASSWORD = "guest"
  
  TT_HOST = "localhost"
  TT_PORT = 1978
  
  CELERY_DEFAULT_EXCHANGE = "testcelery"
  CELERY_DEFAULT_ROUTING_KEY = "testcelery"
  CELERY_DEFAULT_QUEUE = "testcelery"
  
  CELERY_QUEUES = {"testcelery": {"binding_key": "testcelery"}}
  
  MANAGERS = ADMINS
  
  DATABASE_ENGINE = 'sqlite3'
  DATABASE_USER = ''
  DATABASE_PASSWORD = ''
  DATABASE_HOST = ''
  DATABASE_PORT = ''
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'django_nose',
      'djcelery',
      'someapp',
      'someappwotask',
  )
  
  CELERY_SEND_TASK_ERROR_EMAILS = False
  
new_contents: # Django settings for testproj project.
  
  import os
  import sys
  # import source code dir
  sys.path.insert(0, os.getcwd())
  sys.path.insert(0, os.path.join(os.getcwd(), os.pardir))
  
  SITE_ID = 300
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  ROOT_URLCONF = "tests.urls"
  
  ADMINS = (
      # ('Your Name', 'your_email@domain.com'),
  )
  
  TEST_RUNNER = "django_nose.run_tests"
  here = os.path.abspath(os.path.dirname(__file__))
  COVERAGE_EXCLUDE_MODULES = ("djcelery",
                              "djcelery.tests.*",
                              "djcelery.management.*",
                              "djcelery.contrib.*",
  )
  
  NOSE_ARGS = [os.path.join(here, os.pardir, "djcelery", "tests"),
              os.environ.get("NOSE_VERBOSE") and "--verbose" or "",
              "--cover3-package=djcelery",
              "--cover3-branch",
              "--cover3-exclude=%s" % ",".join(COVERAGE_EXCLUDE_MODULES)]
  
  BROKER_HOST = "localhost"
  BROKER_PORT = 5672
  BROKER_VHOST = "/"
  BROKER_USER = "guest"
  BROKER_PASSWORD = "guest"
  
  TT_HOST = "localhost"
  TT_PORT = 1978
  
  CELERY_DEFAULT_EXCHANGE = "testcelery"
  CELERY_DEFAULT_ROUTING_KEY = "testcelery"
  CELERY_DEFAULT_QUEUE = "testcelery"
  
  CELERY_QUEUES = {"testcelery": {"binding_key": "testcelery"}}
  
  MANAGERS = ADMINS
  
  DATABASE_ENGINE = 'sqlite3'
  DATABASE_HOST = 'djcelery-test-db'
  DATABASE_USER = ''
  DATABASE_PASSWORD = ''
  DATABASE_PORT = ''
  
  DATABASES = {
      "default": {
          "ENGINE": "django.db.backends.sqlite3",
          "NAME": "djcelery-test-db",
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'django_nose',
      'djcelery',
      'someapp',
      'someappwotask',
  )
  
  CELERY_SEND_TASK_ERROR_EMAILS = False
  
subject: Add DATABASES to test settings