Skip to content

Commit

Permalink
Silencing the noisies.
Browse files Browse the repository at this point in the history
These messages really don't matter in a DEBUG environment.  In fact they create
quite a bit of noise which makes it hard to analyze whether your scripts that
you are developing are running correctly.
  • Loading branch information
davedash committed Dec 7, 2011
1 parent 1f02e8c commit 71718be
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions funfactory/manage.py
Expand Up @@ -77,17 +77,13 @@ def validate_settings(settings):
from django.core.exceptions import ImproperlyConfigured
if settings.SECRET_KEY == '':
msg = 'settings.SECRET_KEY cannot be blank! Check your local settings'
if settings.DEBUG:
warnings.warn(msg)
else:
if not settings.DEBUG:
raise ImproperlyConfigured(msg)

if getattr(settings, 'SESSION_COOKIE_SECURE', None) is None:
msg = ('settings.SESSION_COOKIE_SECURE should be set to True; '
'otherwise, your session ids can be intercepted over HTTP!')
if settings.DEBUG:
warnings.warn(msg)
else:
if not settings.DEBUG:
raise ImproperlyConfigured(msg)

def _not_setup():
Expand Down

0 comments on commit 71718be

Please sign in to comment.