0
votes
75
views
How to create Django Language Middleware
posted at March 21, 2020, 1:01 p.m. - 2 months, 1 week ago

This example below to setup default language code as id (Indonesian). Your file middleware.py # -*- coding: utf-8 -*- from django.conf import settings from django.utils import translation from django.utils.deprecation import …