from os.path import dirname, join
TEST_ROOT = dirname(__file__)

INSTALLED_APPS = ('adminfiles', 'tests',
                  'django.contrib.contenttypes',
                  'django.contrib.admin',
                  'django.contrib.sites',
                  'django.contrib.auth',
                  'django.contrib.sessions',
                  'sorl.thumbnail')
DATABASE_ENGINE = 'sqlite3'

SITE_ID = 1

MEDIA_URL = '/media/'
MEDIA_ROOT = join(TEST_ROOT, 'media')

STATIC_URL = '/static/'
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = 'tests.urls'

TEMPLATE_DIRS = (join(TEST_ROOT, 'templates'),)

from os.path import dirname, join
TEST_ROOT = dirname(__file__)

INSTALLED_APPS = ('adminfiles', 'tests',
                  'django.contrib.contenttypes',
                  'django.contrib.admin',
                  'django.contrib.sites',
                  'django.contrib.auth',
                  'django.contrib.sessions',
                  'sorl.thumbnail')
DATABASES = {
    "default": {
        "ENGINE": 'django.db.backends.sqlite3',
    }
}

SITE_ID = 1

MEDIA_URL = '/media/'
MEDIA_ROOT = join(TEST_ROOT, 'media')

STATIC_URL = '/static/'
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = 'tests.urls'

TEMPLATE_DIRS = (join(TEST_ROOT, 'templates'),)

Fix deprecation warning: DATABASE_* -> DATABASES
Fix deprecation warning: DATABASE_* -> DATABASES

  from os.path import dirname, join
  TEST_ROOT = dirname(__file__)
  
  INSTALLED_APPS = ('adminfiles', 'tests',
                    'django.contrib.contenttypes',
                    'django.contrib.admin',
                    'django.contrib.sites',
                    'django.contrib.auth',
                    'django.contrib.sessions',
                    'sorl.thumbnail')
- DATABASE_ENGINE = 'sqlite3'
+ DATABASES = {
+     "default": {
+         "ENGINE": 'django.db.backends.sqlite3',
+     }
+ }
  
  SITE_ID = 1
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = join(TEST_ROOT, 'media')
  
  STATIC_URL = '/static/'
  STATIC_ROOT = MEDIA_ROOT
  
  ROOT_URLCONF = 'tests.urls'
  
  TEMPLATE_DIRS = (join(TEST_ROOT, 'templates'),)
  
Fix deprecation warning: DATABASE_* -> DATABASES
## Code Before:
from os.path import dirname, join
TEST_ROOT = dirname(__file__)

INSTALLED_APPS = ('adminfiles', 'tests',
                  'django.contrib.contenttypes',
                  'django.contrib.admin',
                  'django.contrib.sites',
                  'django.contrib.auth',
                  'django.contrib.sessions',
                  'sorl.thumbnail')
DATABASE_ENGINE = 'sqlite3'

SITE_ID = 1

MEDIA_URL = '/media/'
MEDIA_ROOT = join(TEST_ROOT, 'media')

STATIC_URL = '/static/'
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = 'tests.urls'

TEMPLATE_DIRS = (join(TEST_ROOT, 'templates'),)

## Instruction:
Fix deprecation warning: DATABASE_* -> DATABASES
## Code After:
from os.path import dirname, join
TEST_ROOT = dirname(__file__)

INSTALLED_APPS = ('adminfiles', 'tests',
                  'django.contrib.contenttypes',
                  'django.contrib.admin',
                  'django.contrib.sites',
                  'django.contrib.auth',
                  'django.contrib.sessions',
                  'sorl.thumbnail')
DATABASES = {
    "default": {
        "ENGINE": 'django.db.backends.sqlite3',
    }
}

SITE_ID = 1

MEDIA_URL = '/media/'
MEDIA_ROOT = join(TEST_ROOT, 'media')

STATIC_URL = '/static/'
STATIC_ROOT = MEDIA_ROOT

ROOT_URLCONF = 'tests.urls'

TEMPLATE_DIRS = (join(TEST_ROOT, 'templates'),)
