I ran into this problem quite recently, here is how I managed to fix it without changing the language of the language version of the browser:
LANGUAGE_CODE, , :
from django.conf import settings
from django.utils import translation
class ForceLangMiddleware:
def process_request(self, request):
request.LANG = getattr(settings, 'LANGUAGE_CODE', settings.LANGUAGE_CODE)
translation.activate(request.LANG)
request.LANGUAGE_CODE = request.LANG
middleware.py (, main), main.middleware.ForceLangMiddleware MIDDLEWARE_CLASSES