summaryrefslogtreecommitdiff
path: root/django/core/checks/compatibility
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-31 13:24:00 -0500
committerTim Graham <timograham@gmail.com>2017-01-17 20:52:04 -0500
commitd334f46b7a080fd3eb720141c19b37b10704a352 (patch)
treeeeea5a2a967c3078a58455b71cfa64dc8ead2fc6 /django/core/checks/compatibility
parent631f4ab06112aca5bd6a57b81159048f936050bf (diff)
Refs #26601 -- Removed support for old-style middleware using settings.MIDDLEWARE_CLASSES.
Diffstat (limited to 'django/core/checks/compatibility')
-rw-r--r--django/core/checks/compatibility/django_1_10.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/checks/compatibility/django_1_10.py b/django/core/checks/compatibility/django_1_10.py
index 0ab28df6f8..120ef0b5b1 100644
--- a/django/core/checks/compatibility/django_1_10.py
+++ b/django/core/checks/compatibility/django_1_10.py
@@ -1,13 +1,13 @@
from __future__ import unicode_literals
-from django.conf import global_settings, settings
+from django.conf import settings
from .. import Tags, Warning, register
@register(Tags.compatibility)
def check_duplicate_middleware_settings(app_configs, **kwargs):
- if settings.MIDDLEWARE is not None and settings.MIDDLEWARE_CLASSES != global_settings.MIDDLEWARE_CLASSES:
+ if settings.MIDDLEWARE is not None and hasattr(settings, 'MIDDLEWARE_CLASSES'):
return [Warning(
"The MIDDLEWARE_CLASSES setting is deprecated in Django 1.10 "
"and the MIDDLEWARE setting takes precedence. Since you've set "