From e41fcdd4d9d687b6e6ed481b7a5378ae65f5e0f4 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 15 Mar 2012 16:50:29 +0000 Subject: [PATCH] Actually warn on empty SECRET_KEY instead of raising a warning as an exception. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17745 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/conf/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/conf/__init__.py b/django/conf/__init__.py index e16f11e9f95..a3f7ee00a06 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 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