Fixes #19763 - LocaleMiddleware should check for supported languages in settings.LANGUAGE_CODE
Merge pull request #824 from ambv/languagecode