Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #12493 -- Deprecated auto-correction of TEMPLATE_DIRS

  • Loading branch information...
commit db87016b1a92b790c4250a2b5c16ceadd737a00e 1 parent 596e152
Claude Paroz authored June 30, 2012
3  django/conf/__init__.py
@@ -103,6 +103,9 @@ def __init__(self, settings_module):
103 103
                 setting_value = getattr(mod, setting)
104 104
                 if setting in tuple_settings and \
105 105
                         isinstance(setting_value, basestring):
  106
+                    warnings.warn("The %s setting must be a tuple. Please fix your "
  107
+                                  "settings, as auto-correction is now deprecated." % setting,
  108
+                        PendingDeprecationWarning)
106 109
                     setting_value = (setting_value,) # In case the user forgot the comma.
107 110
                 setattr(self, setting, setting_value)
108 111
 
4  docs/internals/deprecation.txt
@@ -276,6 +276,10 @@ these changes.
276 276
 * The function ``django.utils.itercompat.product`` will be removed. The Python
277 277
   builtin version should be used instead.
278 278
 
  279
+* Auto-correction of INSTALLED_APPS and TEMPLATE_DIRS settings when they are
  280
+  specified as a plain string instead of a tuple will be removed and raise an
  281
+  exception.
  282
+
279 283
 2.0
280 284
 ---
281 285
 

0 notes on commit db87016

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