mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Removed an obsolete unicity check.
It doesn't account for app configs. Refs #21679.
This commit is contained in:
@@ -104,11 +104,6 @@ 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":
|
||||
value = list(value) # force evaluation of generators on Python 3
|
||||
if len(value) != len(set(value)):
|
||||
raise ImproperlyConfigured("The INSTALLED_APPS setting must contain unique values.")
|
||||
|
||||
object.__setattr__(self, name, value)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user