old_contents: # -*- coding: utf-8 -*-
  import os
  
  
  DIRNAME=os.path.dirname(__file__)
  
  
  def pytest_configure():
      from django.conf import settings
      settings.configure(
          DEBUG=True,
          TESTING=True,
          STATIC='/static/',
          STATIC_URL='/static/',
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
                  'NAME': 'c:/srv/lib/dkdjango/tests/dkdjango-testing.db',  # Or path to database file if using sqlite3.
                  # The following settings are not used with sqlite3:
                  'USER': '',
                  'PASSWORD': '',
                  'HOST': '',  # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
                  'PORT': '',  # Set to empty string for default.
              }
          },
          TEMPLATE_DIRS=[DIRNAME],
          INSTALLED_APPS=(
              'django.contrib.auth',
              'django.contrib.contenttypes',
              'django.contrib.sessions',
              'django.contrib.admin',
              'django.contrib.sites',
              'dktemplate',
              #'myapp.tests',
          )
      )
  
new_contents: # -*- coding: utf-8 -*-
  import os
  import django
  
  
  DIRNAME=os.path.dirname(__file__)
  
  
  def pytest_configure():
      from django.conf import settings
      settings.configure(
          DEBUG=True,
          TESTING=True,
          STATIC='/static/',
          STATIC_URL='/static/',
          LOGGING_CONFIG=None,
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',  # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
                  'NAME': 'c:/srv/lib/dkdjango/tests/dkdjango-testing.db',  # Or path to database file if using sqlite3.
                  # The following settings are not used with sqlite3:
                  'USER': '',
                  'PASSWORD': '',
                  'HOST': '',  # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
                  'PORT': '',  # Set to empty string for default.
              }
          },
          TEMPLATE_DIRS=[DIRNAME],
          INSTALLED_APPS=(
              'django.contrib.auth',
              'django.contrib.contenttypes',
              'django.contrib.sessions',
              'django.contrib.admin',
              'django.contrib.sites',
              'dktemplate',
              #'myapp.tests',
          )
      )
      django.setup()
  
subject: call django.setup()