summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-08-05 15:32:17 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2013-08-05 15:32:17 -0600
commit664a54fec35ed9768aeb7e40a3f56cc7b819bd73 (patch)
treeef30b3a63324a04dd2d9ae12f384aea6ff91637d
parent8b4c3bbade3505e6c32009cda7f70ad846ab2014 (diff)
downloadaskbot-664a54fec35ed9768aeb7e40a3f56cc7b819bd73.tar.gz
askbot-664a54fec35ed9768aeb7e40a3f56cc7b819bd73.tar.bz2
askbot-664a54fec35ed9768aeb7e40a3f56cc7b819bd73.zip
do not display error if the site is not multilang and the user has both middlewares on
-rw-r--r--askbot/startup_procedures.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py
index 27cd3c49..aaf0af99 100644
--- a/askbot/startup_procedures.py
+++ b/askbot/startup_procedures.py
@@ -902,11 +902,6 @@ def test_locale_middlewares():
errors.append("Please remove '%s' from your MIDDLEWARE_CLASSES" % askbot_locale_middleware)
if django_locale_middleware not in django_settings.MIDDLEWARE_CLASSES:
errors.append("Please add '%s' to your MIDDLEWARE_CLASSES" % django_locale_middleware)
- else:
- if askbot_locale_middleware not in django_settings.MIDDLEWARE_CLASSES:
- errors.append("Please add '%s' to your MIDDLEWARE_CLASSES" % askbot_locale_middleware)
- if django_locale_middleware in django_settings.MIDDLEWARE_CLASSES:
- errors.append("Please remove '%s' from your MIDDLEWARE_CLASSES" % django_locale_middleware)
print_errors(errors)