Menerima Jasa Pembuatan Website Django & Wordpress (klik disini)
0
votes
28
views
How to custom select language icon in django administration
posted at July 28, 2020, 8:22 p.m. - 1 week, 2 days ago

1. Add the base_site file inside templates/admin/base_site.html. {% extends "admin/base.html" %} {% load static i18n %} {% block title %}{{ title }} | {{ site_title|default:_('Situs django admin') }}{% endblock %} …

0
votes
95
views
How to create Django Language Middleware
posted at March 21, 2020, 1:01 p.m. - 4 months, 2 weeks 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
102
views
How to implement Django Internationalization
posted at July 12, 2018, 10:13 p.m. - 2 years 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
124
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. - 2 years 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 …