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 …

0
votes
97
views
How to implement Django Internationalization
posted at July 12, 2018, 10:13 p.m. - 1 year, 10 months ago

Django is real fucking awesome, this morning i want to share a basic tutorial how to implement the django internationalization with GeoIP. Of course this tutorial if you need to …

0
votes
114
views
Fixed CommandError: Unable to find a locale path to store translations for file __init__.py
posted at July 12, 2018, 10:13 p.m. - 1 year, 10 months ago

Hello guys, this day I want to share a simply tutorial how to fix CommandError: Unable to find a locale path to store translations for file <app_name>/__init__.py for Django 1.10 …