From 2ac89012d8ff750ea5443b6f6f347dacb697e059 Mon Sep 17 00:00:00 2001 From: SusanTan Date: Wed, 7 Aug 2013 01:07:16 -0700 Subject: Fixed #12288 -- Added unique validation for INSTALLED_APPS --- django/conf/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'django') diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 56d9ab21c9..e628af748c 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -107,6 +107,9 @@ class BaseSettings(object): elif name == "ALLOWED_INCLUDE_ROOTS" and isinstance(value, six.string_types): raise ValueError("The ALLOWED_INCLUDE_ROOTS setting must be set " "to a tuple, not a string.") + elif name == "INSTALLED_APPS" and len(value) != len(set(value)): + raise ImproperlyConfigured("The INSTALLED_APPS setting must contain unique values.") + object.__setattr__(self, name, value) -- cgit v1.3