Why manage.py cms check wants cms.middleware.language.LanguageCookieMiddleware

22 views
Skip to first unread message

Venelin Stoykov

unread,
Sep 14, 2016, 4:01:27 AM9/14/16
to django CMS developers
In the documentation for LanguageCookieMiddleware is said that:

When visiting a page that is only English and French with a German browser, the language from LANGUAGE_CODE will be used. If this is English, but the visitor only speaks French, the visitor will have to switch the language. Visiting the same page now again after some time, will show it in English again, because the browser session which was used to store the language selection doesn’t exist any more. To prevent this issue, a middleware exists which stores the language selection in a cookie.

But if the site is not multilingual or site authors implement their own custom solution for determining the right language for the user when visiting home page (for example IP location) or whatever reason extra cookie is not desired then this middleware is not needed and will be removed from MIDDLEWARE_CLASSES.

Is there a real need to show ERROR instead of warning for example when LanguageCookieMiddleware is not enabled when executing manage.py cms check?
Reply all
Reply to author
Forward
0 new messages