Skip to content

Commit ee1a4b4

Browse files
committed
Django 1.10 compat: Configure TEMPLATES in test settings
1 parent 958e9a7 commit ee1a4b4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pytest_django_test/settings_base.py

+9
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@
2828
'django.contrib.auth.middleware.AuthenticationMiddleware',
2929
'django.contrib.messages.middleware.MessageMiddleware',
3030
)
31+
32+
TEMPLATES = [
33+
{
34+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
35+
'DIRS': [],
36+
'APP_DIRS': True,
37+
'OPTIONS': {},
38+
},
39+
]

0 commit comments

Comments
 (0)