mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Remove unused TEMPLATE_LOADERS setting, in favor of TEMPLATES.
This commit is contained in:
parent
c65c5e4b2c
commit
7ece633831
|
@ -3,18 +3,18 @@ def pytest_configure():
|
||||||
|
|
||||||
settings.configure(
|
settings.configure(
|
||||||
DEBUG_PROPAGATE_EXCEPTIONS=True,
|
DEBUG_PROPAGATE_EXCEPTIONS=True,
|
||||||
DATABASES={'default': {'ENGINE': 'django.db.backends.sqlite3',
|
DATABASES={
|
||||||
'NAME': ':memory:'}},
|
'default': {
|
||||||
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
|
'NAME': ':memory:'
|
||||||
|
}
|
||||||
|
},
|
||||||
SITE_ID=1,
|
SITE_ID=1,
|
||||||
SECRET_KEY='not very secret in tests',
|
SECRET_KEY='not very secret in tests',
|
||||||
USE_I18N=True,
|
USE_I18N=True,
|
||||||
USE_L10N=True,
|
USE_L10N=True,
|
||||||
STATIC_URL='/static/',
|
STATIC_URL='/static/',
|
||||||
ROOT_URLCONF='tests.urls',
|
ROOT_URLCONF='tests.urls',
|
||||||
TEMPLATE_LOADERS=(
|
|
||||||
'django.template.loaders.filesystem.Loader',
|
|
||||||
'django.template.loaders.app_directories.Loader',
|
|
||||||
),
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
|
@ -33,7 +33,6 @@ def pytest_configure():
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.sites',
|
'django.contrib.sites',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'rest_framework.authtoken',
|
'rest_framework.authtoken',
|
||||||
'tests',
|
'tests',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user