summaryrefslogtreecommitdiffstats
path: root/askbot/startup_procedures.py
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-03-20 12:38:49 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-03-20 12:38:49 -0600
commit3d718667e805cb409417f534e2dc9a3e42931276 (patch)
treeffac615a4edd4db2261c86ea6d11fbaca5ee0ca5 /askbot/startup_procedures.py
parenta3596220c202acb29eb7263e0548386243e4c0c7 (diff)
downloadaskbot-3d718667e805cb409417f534e2dc9a3e42931276.tar.gz
askbot-3d718667e805cb409417f534e2dc9a3e42931276.tar.bz2
askbot-3d718667e805cb409417f534e2dc9a3e42931276.zip
display error messages via exceptions on livesettings
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r--askbot/startup_procedures.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py
index d612d824..d728eb3f 100644
--- a/askbot/startup_procedures.py
+++ b/askbot/startup_procedures.py
@@ -824,6 +824,10 @@ def test_multilingual():
print_errors(errors)
+def test_messages_framework():
+ if not 'django.contrib.messages' in django_settings.INSTALLED_APPS:
+ errors = ('Add to the INSTALLED_APPS section of your settings.py:\n "django.contrib.messages"', )
+ print_errors(errors)
def run_startup_tests():
"""function that runs
@@ -847,6 +851,7 @@ def run_startup_tests():
test_avatar()
test_group_messaging()
test_multilingual()
+ test_messages_framework()
test_haystack()
test_cache_backend()
test_secret_key()