Skip to content

Commit

Permalink
Actually warn on empty SECRET_KEY instead of raising a warning as an …
Browse files Browse the repository at this point in the history
…exception.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
carljm committed Mar 15, 2012
1 parent 51e9ae8 commit 53cbb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/conf/__init__.py
Expand Up @@ -107,7 +107,7 @@ def __init__(self, settings_module):
setattr(self, setting, setting_value)

if not self.SECRET_KEY:
raise DeprecationWarning("The SECRET_KEY setting must not be empty.")
warnings.warn("The SECRET_KEY setting must not be empty.", DeprecationWarning)

if hasattr(time, 'tzset') and self.TIME_ZONE:
# When we can, attempt to validate the timezone. If we can't find
Expand Down

0 comments on commit 53cbb9c

Please sign in to comment.