From: olivier <> Date: Mon, 6 Apr 2009 16:58:15 +0000 (+0000) Subject: add general config checks X-Git-Tag: 1.1~700 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7aa1af0638b3143d716e2852d2647a4ed2544916;p=telemeta.git add general config checks --- diff --git a/telemeta/config.py b/telemeta/config.py new file mode 100644 index 00000000..521f8842 --- /dev/null +++ b/telemeta/config.py @@ -0,0 +1,9 @@ +from django.conf import settings + +def check(): + """Perform general configuration verifications""" + if not len(settings.ADMINS): + raise ConfigurationError("The ADMINS configuration option must be set in settings.py.") + +class ConfigurationError(Exception): + pass