From 7dda48bf18454b34e8e0a305dbfda08ecfe8db25 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 25 Jan 2017 13:53:38 -0500 Subject: [PATCH] [1.11.x] Refs #27741 -- Fixed staticfiles_tests.test_views when run in isolation. Backport of 11856ea44e4dd1ff2358c559c0d04ac848832c23 from master --- tests/staticfiles_tests/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/staticfiles_tests/settings.py b/tests/staticfiles_tests/settings.py index caf42b2505e..0008894a442 100644 --- a/tests/staticfiles_tests/settings.py +++ b/tests/staticfiles_tests/settings.py @@ -26,4 +26,7 @@ TEST_SETTINGS = { 'staticfiles_tests.apps.test', 'staticfiles_tests.apps.no_label', ], + # In particular, AuthenticationMiddleware can't be used because + # contrib.auth isn't in INSTALLED_APPS. + 'MIDDLEWARE': [], }