Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12493 -- Deprecated auto-correction of TEMPLATE_DIRS

  • Loading branch information...
commit db87016b1a92b790c4250a2b5c16ceadd737a00e 1 parent 596e152
@claudep claudep authored
Showing with 7 additions and 0 deletions.
  1. +3 −0  django/conf/__init__.py
  2. +4 −0 docs/internals/deprecation.txt
View
3  django/conf/__init__.py
@@ -103,6 +103,9 @@ def __init__(self, settings_module):
setting_value = getattr(mod, setting)
if setting in tuple_settings and \
isinstance(setting_value, basestring):
+ warnings.warn("The %s setting must be a tuple. Please fix your "
+ "settings, as auto-correction is now deprecated." % setting,
+ PendingDeprecationWarning)
setting_value = (setting_value,) # In case the user forgot the comma.
setattr(self, setting, setting_value)
View
4 docs/internals/deprecation.txt
@@ -276,6 +276,10 @@ these changes.
* The function ``django.utils.itercompat.product`` will be removed. The Python
builtin version should be used instead.
+* Auto-correction of INSTALLED_APPS and TEMPLATE_DIRS settings when they are
+ specified as a plain string instead of a tuple will be removed and raise an
+ exception.
+
2.0
---
Please sign in to comment.
Something went wrong with that request. Please try again.