Author: carljm
Date: 2012-03-15 09:50:29 -0700 (Thu, 15 Mar 2012)
New Revision: 17745

Modified:
   django/trunk/django/conf/__init__.py
Log:
Actually warn on empty SECRET_KEY instead of raising a warning as an exception.

Modified: django/trunk/django/conf/__init__.py
===================================================================
--- django/trunk/django/conf/__init__.py        2012-03-15 15:06:57 UTC (rev 
17744)
+++ django/trunk/django/conf/__init__.py        2012-03-15 16:50:29 UTC (rev 
17745)
@@ -107,7 +107,7 @@
                 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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to