summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul McMillan <Paul@McMillan.ws>2012-03-02 03:48:26 +0000
committerPaul McMillan <Paul@McMillan.ws>2012-03-02 03:48:26 +0000
commit10e671efaa824e5614ceb79356f0bf59ebb58c4d (patch)
tree511fb4c7015fc9de9c13a1d199ff59260713a00f
parentfe7ccdc5bee76028a14f4afd2532f748253854a4 (diff)
Modified the error when SECRET_KEY is missing to be a DeprecationWarning.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/conf/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py
index c887890a0c..e16f11e9f9 100644
--- a/django/conf/__init__.py
+++ b/django/conf/__init__.py
@@ -107,7 +107,7 @@ class Settings(BaseSettings):
setattr(self, setting, setting_value)
if not self.SECRET_KEY:
- raise ValueError("The SECRET_KEY setting mustn't be empty.")
+ raise DeprecationWarning("The SECRET_KEY setting must not be empty.")
if hasattr(time, 'tzset') and self.TIME_ZONE:
# When we can, attempt to validate the timezone. If we can't find