diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2013-08-05 15:32:17 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2013-08-05 15:32:17 -0600 |
commit | 664a54fec35ed9768aeb7e40a3f56cc7b819bd73 (patch) | |
tree | ef30b3a63324a04dd2d9ae12f384aea6ff91637d | |
parent | 8b4c3bbade3505e6c32009cda7f70ad846ab2014 (diff) | |
download | askbot-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.py | 5 |
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) |