text: import django
  from os import path
  
  DEBUG = False
  
  ROOT_URLCONF = 'tests.urls'
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
      }
  }
  
  INSTALLED_APPS = [
      'django.contrib.auth',
      'django.contrib.admin',
      'django.contrib.messages',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.sites',
      'async_messages',
      'tests'
  ]
  
  
  if django.VERSION >= (1, 10):
      MIDDLEWARE = (
          'django.middleware.common.CommonMiddleware',
          'django.contrib.sessions.middleware.SessionMiddleware',
          'django.middleware.csrf.CsrfViewMiddleware',
          'django.contrib.auth.middleware.AuthenticationMiddleware',
          'django.contrib.messages.middleware.MessageMiddleware',
          'async_messages.middleware.AsyncMiddleware'
      )
  else:
      MIDDLEWARE_CLASSES = (
          'django.middleware.common.CommonMiddleware',
          'django.contrib.sessions.middleware.SessionMiddleware',
          'django.middleware.csrf.CsrfViewMiddleware',
          'django.contrib.auth.middleware.AuthenticationMiddleware',
          'django.contrib.messages.middleware.MessageMiddleware',
          'async_messages.middleware.AsyncMiddleware'
      )
  
  SITE_ID = 1
  
  if django.VERSION >= (1, 8):
      TEMPLATES = [
          {
              'BACKEND': 'django.template.backends.django.DjangoTemplates',
              'DIRS': [
                  path.join(path.dirname(__file__), "templates"),
              ],
               'OPTIONS': {
                  'context_processors': [
                      # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
                      # list if you haven't customized them:
                      'django.template.context_processors.request',
                      'django.contrib.auth.context_processors.auth',
                      'django.template.context_processors.debug',
                      'django.template.context_processors.i18n',
                      'django.template.context_processors.media',
                      'django.template.context_processors.static',
                      'django.template.context_processors.tz',
                      'django.contrib.messages.context_processors.messages',
                  ],
              },
          },
      ]
  else:
      TEMPLATE_DIRS = (
          path.join(path.dirname(__file__), "templates"),
      )
  
  SECRET_KEY = 'foobarbaz'
  