Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified the error when SECRET_KEY is missing to be a DeprecationWarn…

…ing.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 10e671efaa824e5614ceb79356f0bf59ebb58c4d 1 parent fe7ccdc
@PaulMcMillan PaulMcMillan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/conf/__init__.py
View
2  django/conf/__init__.py
@@ -107,7 +107,7 @@ def __init__(self, settings_module):
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

0 comments on commit 10e671e

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