import os

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

DEBUG = False

SECRET_KEY = 'fake-key'

ROOT_URLCONF = 'tests.test_urls'

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.sites',
    'django.contrib.staticfiles',
    'rest_framework',
    'journal.apps.JournalConfig',
    'tests',
]

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

@@ -852,16 +852,607 @@
 re',%0A%5D%0A%0A
+TEMPLATES = %5B%0A    %7B%0A        'BACKEND': 'django.template.backends.django.DjangoTemplates',%0A        'DIRS': %5B%0A            os.path.join(BASE_DIR, 'templates')%0A        %5D,%0A        'APP_DIRS': True,%0A        'OPTIONS': %7B%0A            'context_processors': %5B%0A                'django.template.context_processors.debug',%0A                'django.template.context_processors.request',%0A                'django.contrib.auth.context_processors.auth',%0A                'django.contrib.messages.context_processors.messages',%0A                'core.context_processors.extra',%0A            %5D,%0A        %7D,%0A    %7D,%0A%5D%0A%0A
 DATABASE

add TEMPLATES directive required in newer Django.