From 7aa1af0638b3143d716e2852d2647a4ed2544916 Mon Sep 17 00:00:00 2001 From: olivier <> Date: Mon, 6 Apr 2009 16:58:15 +0000 Subject: [PATCH] add general config checks --- telemeta/config.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 telemeta/config.py 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 -- 2.39.5