1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Revert "Fixed #12288 -- Validated that app names in INSTALLED_APPS are unique"

This reverts commit c1ec08998d.

There are backwards compatability concerns with this.
This commit is contained in:
Tim Graham
2013-09-14 07:19:32 -04:00
parent 74b91b3888
commit 886bb9d878
2 changed files with 3 additions and 7 deletions

View File

@@ -109,9 +109,8 @@ class BaseSettings(object):
"to a tuple, not a string.")
elif name == "INSTALLED_APPS":
value = list(value) # force evaluation of generators on Python 3
apps = [s.split('.')[-1] for s in value]
if len(value) != len(set(apps)):
raise ImproperlyConfigured("The INSTALLED_APPS setting must contain unique app names.")
if len(value) != len(set(value)):
raise ImproperlyConfigured("The INSTALLED_APPS setting must contain unique values.")
object.__setattr__(self, name, value)