]> git.parisson.com Git - telemeta.git/commitdiff
add general config checks
authorolivier <>
Mon, 6 Apr 2009 16:58:15 +0000 (16:58 +0000)
committerolivier <>
Mon, 6 Apr 2009 16:58:15 +0000 (16:58 +0000)
telemeta/config.py [new file with mode: 0644]

diff --git a/telemeta/config.py b/telemeta/config.py
new file mode 100644 (file)
index 0000000..521f884
--- /dev/null
@@ -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