Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Stop auto-correcting string INSTALLED_APPS, TEMPLATE_DIRS settings, a…

…s per deprecation TL.
  • Loading branch information...
1 parent f73d04d commit 5e08b792eff2a3ca340ad5a8a568c665e52ec39e @ramiro ramiro committed
Showing with 0 additions and 10 deletions.
  1. +0 −10 django/conf/
10 django/conf/
@@ -132,19 +132,9 @@ def __init__(self, settings_module):
- # Settings that should be converted into tuples if they're mistakenly entered
- # as strings.
- tuple_settings = ("INSTALLED_APPS", "TEMPLATE_DIRS")
for setting in dir(mod):
if setting == setting.upper():
setting_value = getattr(mod, setting)
- if setting in tuple_settings and \
- isinstance(setting_value, six.string_types):
- warnings.warn("The %s setting must be a tuple. Please fix your "
- "settings, as auto-correction is now deprecated." % setting,
- DeprecationWarning, stacklevel=2)
- setting_value = (setting_value,) # In case the user forgot the comma.
setattr(self, setting, setting_value)
if not self.SECRET_KEY:

2 comments on commit 5e08b79


I think that only the auto-correction should have been removed. So instead of auto-correcting, we should raise an ImproperlyConfigured exception. Right?


Ah yes, now that I read the deprecation timeline document entry more carefully and see I see the intended action was to raise an exception.

Will fix that today. Thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.